Files
nairobi/app/models/abilities/everyone.rb
Amaia Castro 9a9f1da5a0 Renames Legislation model to LegacyLegislation
Renames the model and related stuff from Legislation 
to LegacyLegislation to avoid name clashes with 
the future Legislation module.
2016-11-30 12:00:05 +01:00

17 lines
367 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, SpendingProposal
can :read, LegacyLegislation
can :read, User
can [:search, :read], Annotation
can :new, DirectMessage
end
end
end