Module: Alchemy::Permissions::AdminUser

Includes:
EditorUser
Included in:
Alchemy::Permissions
Defined in:
lib/alchemy/permissions.rb

Overview

Admin rules

Includes editor rules

Instance Method Summary collapse

Methods included from EditorUser

#alchemy_editor_rules

Methods included from AuthorUser

#alchemy_author_rules

Methods included from MemberUser

#alchemy_member_rules

Methods included from GuestUser

#alchemy_guest_user_rules

Instance Method Details

#alchemy_admin_rulesObject



168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/alchemy/permissions.rb', line 168

def alchemy_admin_rules
  alchemy_editor_rules

  # Navigation
  can :index,                 [:alchemy_admin_sites]

  # Controller actions
  can [:info, :update_check], :alchemy_admin_dashboard

  # Resources
  can :manage,                Alchemy::Language
  can :manage,                Alchemy::Site
end