diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-10 09:52:08 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-10 09:52:08 +0100 |
commit | 04730ba7acf55ed5310352eabf3876bf5b8d1f87 (patch) | |
tree | 2b3c1c60f7646770fc23ddd142c27658fd5f0e3a /app/models | |
parent | fc9b8e69e74a76d6727d5ddceebb018782027b16 (diff) |
Set the Ability for Switchboard and SwitchboardEntry.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ability.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index fe67547..2dd96b8 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -183,6 +183,11 @@ class Ability # can :manage, VoicemailMessage can :manage, VoicemailSetting + + # Switchboard + # + can :read, Switchboard, :id => user.switchboard_ids + can :read, SwitchboardEntry, :switchboard_id => user.switchboard_ids end end else |