Files
nairobi/app/models/abilities/everyone.rb
2017-01-19 16:51:19 +01:00

24 lines
592 B
Ruby

module Abilities
class Everyone
include CanCan::Ability
def initialize(user)
can [:read, :map], Debate
can [:read, :map, :summary], Proposal
can :read, Comment
can :read, Poll
can :read, Poll::Question
can [:read, :welcome], Budget
can :read, Budget::Investment
can :read, SpendingProposal
can :read, Legislation
can :read, User
can [:search, :read], Annotation
can [:read], Budget
can [:read], Budget::Group
can [:read, :print], Budget::Investment
can :new, DirectMessage
end
end
end