2 include CanCan::Ability
6 can [:permalink, :edit, :help, :fixthemap, :offline, :export, :about, :preview, :copyright, :key, :id, :welcome], :site
11 # Define abilities for the passed in user here. For example:
13 # user ||= User.new # guest user (not logged in)
20 # The first argument to `can` is the action you are giving the user
22 # If you pass :manage it will apply to every action. Other common actions
23 # here are :read, :create, :update and :destroy.
25 # The second argument is the resource the user can perform the action on.
26 # If you pass :all it will apply to every resource. Otherwise pass a Ruby
27 # class of the resource.
29 # The third argument is an optional hash of conditions to further filter the
31 # For example, here the user can only update published articles.
33 # can :update, Article, :published => true
35 # See the wiki for details:
36 # https://github.com/CanCanCommunity/cancancan/wiki/Defining-Abilities