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 UnauthorizedLocalized Key: privileges.authentication.admin_authentication_requiredExample: 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 UnauthorizedLocalized Key: privileges.authentication.mgr_admin_authentication_requiredExample: 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 UnauthorizedLocalized Key: privileges.authentication.user_authentication_requiredExample: 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 ErrorLocalized Key: privileges.check.wrong_user_privilege_groupExample: 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 ForbiddenLocalized Key: privileges.duplicate_privilege_group_nameExample: 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 ForbiddenLocalized Key: privileges.group_contains_usersExample: 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 ForbiddenLocalized Key: privileges.removing_last_administratorExample: 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 ForbiddenLocalized Key: privileges.user_not_allowedExample: This user does not have the required privilege: None-
type
= 'privileges.user_not_allowed'
-
localizable_message
= <LocalizableMessage key='privileges.user_not_allowed' ...>
-