diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-27 11:29:09 +0200 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-27 11:29:09 +0200 |
commit | b9eb27eedd2fc1fc0b8edd7d09a895745f259312 (patch) | |
tree | 79af2bd0063fb3343c4d841ee17b41acc72120dd /app/models/ability.rb | |
parent | fa118e11df2913d1fcf6334b2dc3144a3b324204 (diff) |
Add cancan check for switchboards.
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index 8718dc4..66f3c60 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -95,6 +95,10 @@ class Ability # cannot :manage, RestoreJob + # Admin can manage all switchboards. + # + can :manage, Switchboard + else # Any user can do the following stuff. # |