module Alchemy::Permissions::AuthorUser
Author rules¶ ↑
Includes member users rules
Public Instance Methods
alchemy_author_rules()
click to toggle source
# File lib/alchemy/permissions.rb, line 80 def alchemy_author_rules alchemy_member_rules # Navigation can :index, [ :alchemy_admin_attachments, :alchemy_admin_dashboard, :alchemy_admin_layoutpages, :alchemy_admin_nodes, :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 :update, :alchemy_admin_layoutpages can :tree, :alchemy_admin_pages # Resources can [:read, :download], Alchemy::Attachment can :manage, Alchemy::Element can :manage, Alchemy::Ingredient can [:crop], Alchemy::Ingredients::Picture can :manage, Alchemy::LegacyPageUrl can :manage, Alchemy::Node can [:read, :url], Alchemy::Picture can [:read, :autocomplete], Alchemy::Tag can :edit_content, Alchemy::Page, Alchemy::Page.all do |page| page.editable_by?(@user) end end