]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Merge pull request #4112 from AntonKhorev/no-float-inside-sidebar
[rails.git] / app / abilities / ability.rb
index aee44e6e526124b9ca6c391c5eea77087d522b42..cdf28bd4fb234e1e1801b5d569fbdc982963a608 100644 (file)
@@ -5,8 +5,8 @@ class Ability
 
   def initialize(user)
     can [:relation, :relation_history, :way, :way_history, :node, :node_history,
-         :changeset, :note, :query], :browse
-    can [:new], Note
+         :changeset, :query], :browse
+    can [:show, :new], Note
     can :search, :direction
     can [:index, :permalink, :edit, :help, :fixthemap, :offline, :export, :about, :communities, :preview, :copyright, :key, :id], :site
     can [:finish, :embed], :export
@@ -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