adds new abilities

This commit is contained in:
Juanjo Bazán
2015-08-19 22:43:47 +02:00
committed by Juanjo Bazán
parent bd16e9345a
commit 259aa29de7
2 changed files with 7 additions and 0 deletions

View File

@@ -28,11 +28,13 @@ class Ability
can :hide, Comment
can :hide, Debate
can :hide, User
end
if user.administrator?
can :restore, Comment
can :restore, Debate
can :restore, User
end
end
end