Validation check for not removing the last account admin

This commit is contained in:
Torkel Ödegaard
2015-01-20 15:48:19 +01:00
parent 4ea5d80099
commit eec178458b
5 changed files with 28 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import (
// Typed errors
var (
ErrInvalidRoleType = errors.New("Invalid role type")
ErrInvalidRoleType = errors.New("Invalid role type")
ErrLastAccountAdmin = errors.New("Cannot remove last account admin")
)
type RoleType string