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
Methods included from MemberUser
Methods included from GuestUser
Instance Method Details
#alchemy_editor_rules ⇒ Object
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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/alchemy/permissions.rb', line 134 def alchemy_editor_rules # Navigation can :index, [ :alchemy_admin_languages, :alchemy_admin_users, ] # Controller actions can :clear, :trash # Resources can [ :copy, :copy_language_tree, :flush, :order, :sort, :switch_language, ], Alchemy::Page # Resources which may be locked via template permissions # # # config/alchemy/page_layouts.yml # - name: contact # editable_by: # - freelancer # - admin # can([ :create, :destroy, :publish, ], Alchemy::Page) { |p| p.editable_by?(@user) } can :manage, Alchemy::Picture can :manage, Alchemy::Attachment can :manage, Alchemy::Tag can :index, Alchemy::Language end |