Module: Alchemy::Permissions::MemberUser
- Includes:
- GuestUser
- Included in:
- Alchemy::Permissions, AuthorUser
- Defined in:
- lib/alchemy/permissions.rb
Overview
Member rules
Includes guest users rules
Instance Method Summary collapse
Methods included from GuestUser
Instance Method Details
#alchemy_member_rules ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/alchemy/permissions.rb', line 57 def alchemy_member_rules alchemy_guest_user_rules # Resources can [:show, :download], Alchemy::Attachment can :read, Alchemy::Element, Alchemy::Element.published do |e| e.public? end can :read, Alchemy::Page, Alchemy::Page.published.from_current_site do |p| p.public? && p.site == Alchemy::Site.current end end |