components.workspace.access_control

Workspace access control

components.workspace.access_control.can_delete_workspace(func, workspace, user)

Can user delete a workspace.

Parameters:
  • func
  • workspace
  • user

Returns:

components.workspace.access_control.can_user_set_workspace_public(func, workspace, user)

Check if the user is the owner of the workspace.

Parameters:
  • func
  • workspace
  • user

Returns:

components.workspace.access_control.is_workspace_owner(func, workspace, user)

Check if the user is the owner of the workspace.

Parameters:
  • func
  • workspace
  • user

Returns:

components.workspace.access_control.is_workspace_owner_to_perform_action_for_others(func, workspace, new_user_id, user)

Check if the user is the owner of the workspace to perform action for other user.

Parameters:
  • func
  • workspace
  • new_user_id
  • user

Returns: