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



175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/alchemy/permissions.rb', line 175

def alchemy_admin_rules
  alchemy_editor_rules

  # Navigation
  can :index, [:alchemy_admin_sites, :alchemy_admin_styleguide]

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

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