Sha256: e80745f1db3c4458899fbfb6076806d4844e7fd533d7f16e09e24b8ff7eaf942

Contents?: true

Size: 1.03 KB

Versions: 22

Compression:

Stored size: 1.03 KB

Contents

class AccountAccess < Lipsiadmin::AccessControl::Base 

  roles_for :administrator do |role, current_account|
    # Shared Permission
    role.allow_all_actions "/backend"
    role.allow_all_actions "/backend/base"
    
    # Remember that it will try to translate the menu in your current
    # locale
    # 
    #   # Look for: I18n.t("backend.menus.account") in /config/locales/backend/yourlocale.yml
    #   project_module :account
    #   # Look for: I18n.t("backend.menus.list") in /config/locales/backend/yourlocale.yml
    #   project.menu :list
    # 
    # It not necessary have a translation you can provide a classic strings like:
    # 
    #   role.project_module "My Menu Name"
    # 
    # <tt>current_account</tt> is an instance of current logged account
    # 
    role.project_module :account do |project|
      project.menu :list,   "/backend/accounts.js" do |submenu|
        submenu.add :new, "/backend/accounts/new"
      end
    end
    
    # Please don't remove this comment! It's used for auto adding project modules
  end
  
  
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
lipsiadmin-5.1.6 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.1.5 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.1.4 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.1.3 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.1.2 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.1.1 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.1.0 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.9 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.8 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.7 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.6 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.5 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.4 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-4.1.8 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.0 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.1 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.2 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-5.0.3 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-4.1.4 lipsiadmin_generators/backend/templates/models/account_access.rb
lipsiadmin-4.1.5 lipsiadmin_generators/backend/templates/models/account_access.rb