adds permissions to comment Investments as admin/moderator

This commit is contained in:
Juanjo Bazán
2017-01-10 14:31:02 +01:00
parent ad435040bd
commit b71bcdd4b5
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ module Abilities
can :mark_featured, Debate
can :unmark_featured, Debate
can :comment_as_administrator, [Debate, Comment, Proposal]
can :comment_as_administrator, [Debate, Comment, Proposal, Budget::Investment]
can [:search, :create, :index, :destroy], ::Moderator
can [:search, :create, :index, :summary], ::Valuator

View File

@@ -5,7 +5,7 @@ module Abilities
def initialize(user)
self.merge Abilities::Moderation.new(user)
can :comment_as_moderator, [Debate, Comment, Proposal]
can :comment_as_moderator, [Debate, Comment, Proposal, Budget::Investment]
end
end
end