changed role permission
This commit is contained in:
1 parent
f0ecf23879
commit
323e131216
74 files changed
+2915
-4713
No files matched your search
@@ -13,6 +13,10 @@ var (
|
||||
ErrInvalidCode = NewAppError(nil, "Invalid or expired verification code.", "SE-00009")
|
||||
ErrPasswordMismatch = NewAppError(nil, "Password confirmation does not match.", "SE-00010")
|
||||
ErrDuplicate = NewAppError(nil, "A record with these values already exists.", "SE-00012")
|
||||
ErrRoleInUse = NewAppError(nil, "The role is still assigned to users.", "SE-00013")
|
||||
ErrLastSuperadmin = NewAppError(nil, "The last superadmin cannot be removed or demoted.", "SE-00014")
|
||||
ErrUnknownRole = NewAppError(nil, "Role not found.", "SE-00015")
|
||||
ErrSystemRole = NewAppError(nil, "System roles cannot be deleted or have their scope changed.", "SE-00016")
|
||||
)
|
||||
|
||||
type AppError struct {
|
||||
|
||||
Reference in new issue
Block a user