Prevent from deleting the last admin user (#7008)

* Prevent from deleting the last admin user

Fixes #6990

* Add missing return types
This commit is contained in:
Rijk van Zanten
2021-07-27 22:30:13 +02:00
committed by GitHub
parent b943b2d10f
commit 07fb7d67a8
5 changed files with 174 additions and 52 deletions

View File

@@ -423,6 +423,7 @@ errors:
USER_SUSPENDED: User Suspended
CONTAINS_NULL_VALUES: Field contains null values
UNKNOWN: Unexpected Error
UNPROCESSABLE_ENTITY: Unprocessable entity
INTERNAL_SERVER_ERROR: Unexpected Error
value_hashed: Value Securely Hashed
bookmark_name: Bookmark name...