Check permissions
Last updated
Was this helpful?
Last updated
Was this helpful?
Endpoint to check if a user has permissions to act on resources.
Args: user_id: ID of the user for which to check the permissions. action: The action the user wants to perform on the resources. resources: The resources the user wants to perform the action on. auth_context: The authentication context. rbac: RBAC component. db: DB session.
Raises: IllegalOperationError: If the user is not an internal user.
Returns: A dictionary mapping resources to a boolean which indicates whether the user has permissions to perform the action on that resource.