Policy Engine For Nova.
Bases: oslo_policy._checks.Check
An explicit check for is_admin.
Whether or not roles contains ‘admin’ role according to policy setting.
Verifies that the action is valid on the target in this context.
Parameters: |
|
---|---|
Raises nova.exception.PolicyNotAuthorized: | |
if verification fails and do_raise is True. |
|
Returns: | returns a non-False value (not necessarily “True”) if authorized, and the exact value False if not authorized and do_raise is False. |
Init an Enforcer class.
Parameters: |
|
---|
Set rules based on the provided dict of rules.
Parameters: |
|
---|