Renames the model and related stuff from Legislation to LegacyLegislation to avoid name clashes with the future Legislation module.
17 lines
367 B
Ruby
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
|