privileges

privileges.authentication.admin_authentication_required

exception lsserver.user.privilege_errors.AdminAuthenticationRequired(required_privilege)

Bases: lscore.errors.server_errors.Unauthorized, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 401 Unauthorized
Example: Admin authentication is required for: None
type = 'privileges.authentication.admin_authentication_required'
localizable_message = <LocalizableMessage key='privileges.authentication.admin_authentication_required' ...>

privileges.authentication.mgr_admin_authentication_required

exception lsserver.user.privilege_errors.ManagerAdminAuthenticationRequired(required_privilege)

Bases: lscore.errors.server_errors.Unauthorized, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 401 Unauthorized
Example: Manager/Admin authentication is required for: None
type = 'privileges.authentication.mgr_admin_authentication_required'
localizable_message = <LocalizableMessage key='privileges.authentication.mgr_admin_authentication_required' ...>

privileges.authentication.user_authentication_required

exception lsserver.user.privilege_errors.UserAuthenticationRequired(required_privilege)

Bases: lscore.errors.server_errors.Unauthorized, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 401 Unauthorized
Example: User authentication is required for: None
type = 'privileges.authentication.user_authentication_required'
localizable_message = <LocalizableMessage key='privileges.authentication.user_authentication_required' ...>

privileges.check.wrong_user_privilege_group

exception lsserver.user.privilege_groups_resources.PrivilegeGroupPrivilegeCheckWrongUserPrivlegeGroup(privilege_name)

Bases: lscore.errors.server_errors.UnexpectedError, lsserver.user.privilege_groups_resources.PrivilegeGroupPrivilegeCheckError

HTTP code: 500 Internal Server Error
Example: User is not assigned privilege group: None
type = 'privileges.check.wrong_user_privilege_group'
localizable_message = <LocalizableMessage key='privileges.check.wrong_user_privilege_group' ...>

privileges.duplicate_privilege_group_name

exception lsserver.user.privilege_errors.DuplicatePrivilegeGroupName(group_name)

Bases: lscore.errors.server_errors.Forbidden, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 403 Forbidden
Example: The privilege group name ‘None’ is already in use.
type = 'privileges.duplicate_privilege_group_name'
localizable_message = <LocalizableMessage key='privileges.duplicate_privilege_group_name' ...>

privileges.group_contains_users

exception lsserver.user.privilege_errors.GroupContainsUsers(message=None, **kwargs)

Bases: lscore.errors.server_errors.Forbidden, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 403 Forbidden
Example: This privilege group has associated users and cannot be deleted.
type = 'privileges.group_contains_users'
localizable_message = <LocalizableMessage key='privileges.group_contains_users' ...>

privileges.removing_last_administrator

exception lsserver.user.privilege_errors.RemovingLastAdministrator(message=None, **kwargs)

Bases: lscore.errors.server_errors.Forbidden, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 403 Forbidden
Example: The last privilege group of type administrator cannot be deleted or have its type changed.
type = 'privileges.removing_last_administrator'
localizable_message = <LocalizableMessage key='privileges.removing_last_administrator' ...>

privileges.user_not_allowed

exception lsserver.user.privilege_errors.UserNotAllowed(required_privilege)

Bases: lscore.errors.server_errors.Forbidden, lsserver.user.privilege_errors.PrivilegeError

HTTP code: 403 Forbidden
Example: This user does not have the required privilege: None
type = 'privileges.user_not_allowed'
localizable_message = <LocalizableMessage key='privileges.user_not_allowed' ...>