X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b5046fdcd02b7ae9c10f22fa0b483e6eb2e06fa3..d45c1435e6649c6af91d5799a5162dfaa661c72b:/app/abilities/ability.rb?ds=sidebyside diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index aee44e6e5..cdf28bd4f 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -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