changes admin/valuator permissions
not allowed to create/destroy spending proposals anymore
This commit is contained in:
@@ -37,7 +37,7 @@ module Abilities
|
||||
|
||||
can :manage, Annotation
|
||||
|
||||
can :manage, SpendingProposal
|
||||
can [:read, :update], SpendingProposal
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ module Abilities
|
||||
include CanCan::Ability
|
||||
|
||||
def initialize(user)
|
||||
can :manage, SpendingProposal
|
||||
can [:read, :update, :valuate], SpendingProposal
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user