]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Allow admins to unhide diary comments, if they wish
[rails.git] / app / abilities / ability.rb
index a663dc4becebb88c29cc3adf30b0dbe2a00199d5..28380392df1aaaba9500b1724e047e8c71f70826 100644 (file)
@@ -51,7 +51,7 @@ class Ability
         end
 
         if user.administrator?
-          can [:hide, :unhide, :hidecomment], [DiaryEntry, DiaryComment]
+          can [:hide, :unhide, :hidecomment, :unhidecomment], [DiaryEntry, DiaryComment]
           can [:index, :show, :resolve, :ignore, :reopen], Issue
           can :create, IssueComment
           can [:set_status, :delete, :index], User