Allow to remove budget investment image from edit image page to authors and administrators.
This commit is contained in:
@@ -57,6 +57,7 @@ module Abilities
|
||||
can :vote, Budget::Investment, budget: { phase: "selecting" }
|
||||
can :edit_image, Budget::Investment, author_id: user.id
|
||||
can :update_image, Budget::Investment, author_id: user.id
|
||||
can :remove_image, Budget::Investment, author_id: user.id
|
||||
|
||||
can [:show, :create], Budget::Ballot, budget: { phase: "balloting" }
|
||||
can [:create, :destroy], Budget::Ballot::Line, budget: { phase: "balloting" }
|
||||
|
||||
Reference in New Issue
Block a user