fix: allow deleting the user's own account (#5820)

This commit is contained in:
Ariel Leyva authored and GitHub committed 2026-03-11 19:36:05 +01:00
1 parent f5f8b60b33
commit f04af0cac6
4 files changed
+55 -4

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ var (
ErrPermissionDenied = errors.New("permission denied")
ErrInvalidRequestParams = errors.New("invalid request params")
ErrSourceIsParent = errors.New("source is parent")
ErrRootUserDeletion = errors.New("user with id 1 can't be deleted")
ErrRootUserDeletion = errors.New("the sole admin can't be deleted")
ErrCurrentPasswordIncorrect = errors.New("the current password is incorrect")
)