summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-18 10:57:12 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-18 10:57:12 +0100
commit8feb9102570d23f53c3443ccd3a409d87c97828d (patch)
tree8edc6ee8d7980b39454a446c490ec4f20dbd13ed /app/models/ability.rb
parentbba745bb46b44d3897222e9d14e2c4f79ede4373 (diff)
Refactoring and fixing #112
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 cd91a8a..b846af0 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -27,6 +27,10 @@ class Ability
#
cannot [:create, :destroy, :edit, :update], Tenant, :id => 1
+ # Can't destroy any tenant
+ #
+ cannot :destroy, Tenant
+
cannot :manage, PhoneBook
# Phonebooks and PhoneBookEntries