Skip to main content

Module rbac

Module rbac 

Source

Enums§

UnauthorizedError
Errors that can occur due to an unauthorized action.

Statics§

CREATE_ITEM_USAGE
EMPTY_ITEM_USAGE

Functions§

all_object_privileges
check_plan
Checks if a session is authorized to execute a plan. If not, an error is returned.
check_purification
Authorizes a statement for purification, which runs before planning and so escapes the check_plan gate. source is the existing source the statement would drive, as resolved by crate::pure::statement_source.
check_usage
Checks if a session is authorized to use resolved_ids. If not, an error is returned.
default_builtin_object_privilege
is_rbac_enabled_for_session
Returns true if RBAC is turned on for a session, false otherwise.
owner_privilege
support_builtin_object_privilege