This base access control class where roles are defined as are authorizations.
#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. Returns a new instance of Base
Return true if the given account is allowed to see the given path.
Return an array of project_modules.
Return an array of roles.
We map project modules for a given role or roles.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Admin/AccessControl/Base