summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 09:52:08 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 09:52:08 +0100
commit04730ba7acf55ed5310352eabf3876bf5b8d1f87 (patch)
tree2b3c1c60f7646770fc23ddd142c27658fd5f0e3a /app/models
parentfc9b8e69e74a76d6727d5ddceebb018782027b16 (diff)
Set the Ability for Switchboard and SwitchboardEntry.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ability.rb5
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