X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7a4115f090c6a6f923b2fe31b505982ac006e992..16bdcac6d7a91250bd29b3fbbcc6f1d92531b2d0:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index d0b4997b2..9516a3012 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -23,8 +23,9 @@ class Ability can :read, Redaction can [:create, :destroy], :session can [:read, :data, :georss], Trace - can [:read, :terms, :create, :save, :suspended, :auth_success, :auth_failure], User - can [:read, :blocks_on], UserBlock + can [:read, :create, :suspended, :auth_success, :auth_failure], User + can [:read, :update], :account_terms + can :read, UserBlock end if user&.active? @@ -42,7 +43,7 @@ class Ability can :update, DiaryEntry, :user => user can [:create], DiaryComment can [:make_friend, :remove_friend], Friendship - can [:read, :create, :reply, :inbox, :outbox, :muted, :mark, :unmute, :destroy], Message + can [:read, :create, :mark, :unmute, :destroy], Message can [:close, :reopen], Note can [:read, :update], :preference can :update, :profile @@ -56,7 +57,7 @@ class Ability can [:read, :resolve, :ignore, :reopen], Issue can :create, IssueComment can [:create, :update, :destroy], Redaction - can [:create, :revoke_all], UserBlock + can [:create, :destroy], UserBlock can :update, UserBlock, :creator => user can :update, UserBlock, :revoker => user can :update, UserBlock, :active? => true