feat: #11067 prevent removing last grafana admin permissions

This commit is contained in:
danielbh
2018-12-03 20:05:52 -05:00
parent e9a8185da1
commit d1b8f13c66
5 changed files with 109 additions and 2 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import (
// Typed errors
var (
ErrUserNotFound = errors.New("User not found")
ErrUserNotFound = errors.New("User not found")
ErrLastGrafanaAdmin = errors.New("Cannot remove last grafana admin")
)
type Password string