summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-06 20:52:04 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-06 20:52:04 +0100
commit464a2f4907bd27b62f7b5cc5d7537b90469b03bd (patch)
tree350c0fe981cfe1cf7d9b4de51ad73b7e3a26449b /app/models/ability.rb
parentc500e125c2ee5297b51e463f93940d450dab0813 (diff)
GsParameter can only be created or destroyed by migrations.
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index f4068ca..0fa40c8 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -73,6 +73,10 @@ class Ability
if GsParameter.get('STRICT_INTERNAL_EXTENSION_HANDLING') == false
cannot :manage, PhoneNumberRange
end
+
+ # GsParameter can't be created or deleted via the GUI
+ #
+ cannot [:create, :destroy], GsParameter
else
# Any user can do the following stuff.
#