]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Allow moderator to unhide diary entries as well as hide them
[rails.git] / app / abilities / ability.rb
index 5d196fa98774cf5eeb03cb05464f69f1626522a3..cdf28bd4fb234e1e1801b5d569fbdc982963a608 100644 (file)
@@ -56,7 +56,7 @@ class Ability
         can [:account, :go_public], User
 
         if user.moderator?
-          can [:hide, :hidecomment], DiaryEntry
+          can [:hide, :unhide, :hidecomment, :unhidecomment], DiaryEntry
           can [:index, :show, :resolve, :ignore, :reopen], Issue
           can :create, IssueComment
           can [:new, :create, :edit, :update, :destroy], Redaction