Module: Alchemy::Permissions::EditorUser

Includes:
AuthorUser
Included in:
Alchemy::Permissions, AdminUser
Defined in:
lib/alchemy/permissions.rb

Overview

Editor rules

Includes author rules

Instance Method Summary collapse

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_editor_rulesObject



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/alchemy/permissions.rb', line 129

def alchemy_editor_rules
  alchemy_author_rules

  # Navigation
  can :index, [
    :alchemy_admin_languages,
    :alchemy_admin_users
  ]

  # Controller actions
  can :clear, :trash

  # Resources
  can [
    :copy,
    :copy_language_tree,
    :create,
    :destroy,
    :flush,
    :order,
    :publish,
    :sort,
    :switch_language
  ], Alchemy::Page

  can :manage, Alchemy::Picture
  can :manage, Alchemy::Attachment
  can :manage, Alchemy::Tag
  can :index,  Alchemy::Language
end