fix: don't allow to remove root user

This commit is contained in:
Oleg Lobanov 2021-01-11 22:33:36 +01:00
parent 8cea2f75b3
commit 019ce80fc5
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
6 changed files with 22 additions and 11 deletions

View file

@ -17,4 +17,5 @@ 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")
)