summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-24 22:49:23 +0200
committerPeter Kozak <spag@golwen.net>2013-04-24 22:49:23 +0200
commitae99f98a7ae52a375f1b3b5a85d34c9dd15ff81c (patch)
tree7eb3389741ac895f4b80594bb5ba91fc2b4cd9b3 /app
parent00e26f18486d953814fc0c0a4ba0d30432b56f23 (diff)
generic_files user abilities
Diffstat (limited to 'app')
-rw-r--r--app/models/ability.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index 185572c..2725572 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -185,6 +185,8 @@ class Ability
can :manage, VoicemailMessage
can :manage, VoicemailSetting
+ can :manage, GenericFile, :owner_type => 'User', :owner_id => user.id
+
# Switchboard
#
can :read, Switchboard, :id => user.switchboard_ids