Class: Padrino::Admin::AccessControl::Base
Overview
This base access control class where roles are defined as are authorizations.
Instance Method Summary
-
#allowed?(account = nil, path = nil) ⇒ Boolean
Return true if the given account is allowed to see the given path. -
#initialize ⇒ Base
constructor A new instance of Base. -
#project_modules(account) ⇒ Object
Return an array of project_modules. -
#roles ⇒ Object
Return an array of roles. -
#roles_for(*roles, &block) ⇒ Object
We map project modules for a given role or roles.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
Instance Method Details
#allowed?(account = nil, path = nil) ⇒ Boolean
Return true if the given account is allowed to see the given path.
#project_modules(account) ⇒ Object
Return an array of project_modules.
#roles ⇒ Object
Return an array of roles.
#roles_for(*roles, &block) ⇒ Object
We map project modules for a given role or roles.
© 2010–2020 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Admin/AccessControl/Base