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