fixes error in abilities

This commit is contained in:
kikito
2015-08-17 17:59:23 +02:00
parent 9e1581656a
commit c3bee45eda

View File

@@ -22,15 +22,15 @@ class Ability
end
if user.moderator? || user.administrator?
can :read, Organization
can(:verify, Organization){ |o| !o.verified? }
can(:reject, Organization){ |o| !o.rejected? }
can :hide, Comment
can :hide, Debate
end
elsif user.administrator?
if user.administrator?
can :restore, Comment
can :restore, Debate
end