summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-18 11:19:28 +0100
committerspag <spag@golwen.net>2013-01-18 11:19:28 +0100
commitc11734ec34349a5d8dee4722ab798a6e5aa3c0f4 (patch)
tree9ec92b252ee8eb5913783725355e9532302887b3 /app/models/ability.rb
parent1e465e49670f6c0fccc1cd920992a14942d3cfba (diff)
parentd4e7d4a5d5bdb63fbda279dbc8dd2ec495b90907 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
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