Don't allow the admins or editors groups to be removed.
Don't allow the default group for users to be removed.
This commit is contained in:
1 parent
72595ab1a5
commit
bac556557d
2 files changed
+25
No files matched your search
@@ -162,3 +162,18 @@ CONNECTION_UNWILLING = gen_error_code(
|
||||
CONNECTION_CATEGORY,
|
||||
0x0004,
|
||||
"Account inactivated. Server is unwilling to perform.")
|
||||
|
||||
#
|
||||
# Configuration errors
|
||||
#
|
||||
CONFIGURATION_CATEGORY = 0x0004
|
||||
|
||||
CONFIG_REQUIRED_GROUPS = gen_error_code(
|
||||
CONFIGURATION_CATEGORY,
|
||||
0x0001,
|
||||
"The admins and editors groups are required.")
|
||||
|
||||
CONFIG_DEFAULT_GROUP = gen_error_code(
|
||||
CONFIGURATION_CATEGORY,
|
||||
0x0002,
|
||||
"You cannot remove the default users group.")
|
||||
Reference in new issue
Block a user