X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/19854d936dc3a60cbc439b18251bae5ec58ee7b5..5d916975dbddf2841e1eeafd511c9233a924e90c:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index fd548c5f3..cdf28bd4f 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -5,7 +5,8 @@ class Ability def initialize(user) can [:relation, :relation_history, :way, :way_history, :node, :node_history, - :changeset, :note, :new_note, :query], :browse + :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 @@ -55,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