Sha256: c3bac461bf5d112a759f87c95120da36b89647359e1b27b4fe8782d9bacccb83

Contents?: true

Size: 932 Bytes

Versions: 7

Compression:

Stored size: 932 Bytes

Contents

authorization do
  
  role :guest do
    has_permission_on :alchemy_crm_mailings, :to => [:show]
  end
  
  role :registered do
    includes :guest
  end
  
  role :author do
    includes :registered
  end
  
  role :editor do
    includes :author
  end
  
  role :admin do
    includes :editor
    has_permission_on :alchemy_crm_admin_mailings, :to => [:manage, :edit_content, :deliver, :copy]
    has_permission_on :alchemy_crm_admin_deliveries, :to => [:manage]
    has_permission_on :alchemy_crm_admin_newsletters, :to => [:manage]
    has_permission_on :alchemy_crm_admin_contacts, :to => [:manage, :import, :export, :autocomplete_tag_list]
    has_permission_on :alchemy_crm_admin_tags, :to => [:manage]
    has_permission_on :alchemy_crm_admin_contact_groups, :to => [:manage, :add_filter]
  end
  
end

privileges do
  
  privilege :manage do
    includes :index, :new, :create, :show, :edit, :update, :destroy
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 config/authorization_rules.rb
alchemy_crm-2.0.4.1 config/authorization_rules.rb
alchemy_crm-2.1.0a config/authorization_rules.rb
alchemy_crm-2.0.3 config/authorization_rules.rb
alchemy_crm-2.0.2 config/authorization_rules.rb
alchemy_crm-2.0.1 config/authorization_rules.rb
alchemy_crm-2.0.0 config/authorization_rules.rb