X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/580daf06bd291766a23e8411559f088341792135..4a38ab5c80d325457a1928d049847d82532f620d:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index 907712328..6baa67be5 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -60,7 +60,10 @@ class Ability can [:index, :show, :resolve, :ignore, :reopen], Issue can :create, IssueComment can [:new, :create, :edit, :update, :destroy], Redaction - can [:new, :edit, :create, :update, :revoke, :revoke_all], UserBlock + can [:new, :create, :revoke, :revoke_all], UserBlock + can :update, UserBlock, :creator => user + can :update, UserBlock, :revoker => user + can :update, UserBlock, :active? => true end if user.administrator?