summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-15 21:53:22 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-15 21:53:22 +0100
commitbf9c8cdfb5d2754e53b15560242cc7c43603155a (patch)
treebd0a77226e3187a3742583f0bbe9fc56a1600a67 /app
parent96fc4789d9991548b9fd1144f185da1f3464f156 (diff)
GuiFunction can not be deleted or created on the GUI.
Diffstat (limited to 'app')
-rw-r--r--app/models/ability.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index 0fa40c8..cd91a8a 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -74,9 +74,10 @@ class Ability
cannot :manage, PhoneNumberRange
end
- # GsParameter can't be created or deleted via the GUI
+ # GsParameter and GuiFunction can't be created or deleted via the GUI
#
cannot [:create, :destroy], GsParameter
+ cannot [:create, :destroy], GuiFunction
else
# Any user can do the following stuff.
#