X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e41814d1395803bdb46bfa4db88424be9d47071f..402d7b9c10f64c334ded4886ed805071a41932ce:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index e4b9dcf6b..6638016d7 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -24,7 +24,7 @@ class Ability can [:create, :destroy], :session can [:read, :data, :georss], Trace can [:read, :terms, :create, :save, :suspended, :auth_success, :auth_failure], User - can [:read, :blocks_on, :blocks_by], UserBlock + can :read, UserBlock end if user&.active? @@ -56,7 +56,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