Module: Authorization
- Defined in:
- lib/authorization/publishare/identity.rb,
lib/authorization.rb,
lib/authorization/version.rb,
lib/authorization/publishare/parser.rb,
lib/authorization/publishare/exceptions.rb,
lib/authorization/publishare/hardwired_roles.rb,
lib/authorization/publishare/object_roles_table.rb
Overview
In order to use this mixin, you’ll need to define roles by overriding the following functions:
User#has_role?(role)
Return true or false depending on the roles (strings) passed in.
Model#accepts_role?(role, user)
Return true or false depending on the roles (strings) this particular user has for
this particular model object.
Defined Under Namespace
Modules: Base, HardwiredRoles, Identity, ObjectRolesTable Classes: AuthorizationError, AuthorizationExpressionInvalid, CannotObtainModelClass, CannotObtainModelObject, CannotObtainUserObject, CannotSetObjectRoleWhenSimpleRoleTable, CannotSetRoleWhenHardwired, ModelDoesntImplementRoles, UserDoesntImplementID, UserDoesntImplementRoles
Constant Summary collapse
- VERSION =
"0.1.0"