Module: Alchemy::Permissions::AuthorUser

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

Overview

Author rules

Includes member users rules

Instance Method Summary collapse

Methods included from MemberUser

#alchemy_member_rules

Methods included from GuestUser

#alchemy_guest_user_rules

Instance Method Details

#alchemy_author_rulesObject



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/alchemy/permissions.rb', line 87

def alchemy_author_rules
  alchemy_member_rules

  # Navigation
  can :index, [
    :alchemy_admin_attachments,
    :alchemy_admin_dashboard,
    :alchemy_admin_layoutpages,
    :alchemy_admin_pages,
    :alchemy_admin_pictures,
    :alchemy_admin_tags,
    :alchemy_admin_users
  ]

  # Controller actions
  can :leave,                 :alchemy_admin
  can [:info, :help],         :alchemy_admin_dashboard
  can :manage,                :alchemy_admin_clipboard
  can :index,                 :trash
  can :edit,                  :alchemy_admin_layoutpages
  can :tree,                  :alchemy_admin_pages

  # Resources
  can [:read, :download],     Alchemy::Attachment
  can :manage,                Alchemy::Content
  can :manage,                Alchemy::Element
  can :manage,                Alchemy::EssenceFile
  can :manage,                Alchemy::EssencePicture
  can :manage,                Alchemy::LegacyPageUrl
  can :edit_content,          Alchemy::Page
  can :read,                  Alchemy::Picture
  can [:read, :autocomplete], Alchemy::Tag
end