changed role permission
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-26 16:34:28 +05:00
1 parent f0ecf23879
commit 323e131216
74 files changed
+2915 -4713

No files matched your search

+4
View File
@@ -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 {