diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-06 20:52:04 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-06 20:52:04 +0100 |
commit | 464a2f4907bd27b62f7b5cc5d7537b90469b03bd (patch) | |
tree | 350c0fe981cfe1cf7d9b4de51ad73b7e3a26449b /app/models | |
parent | c500e125c2ee5297b51e463f93940d450dab0813 (diff) |
GsParameter can only be created or destroyed by migrations.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ability.rb | 4 |
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. # |