Fixed bug in user creation and admin role

pull/1442/head
Torkel Ödegaard 10 years ago
parent 861e45aedf
commit 0f63c04beb
  1. 2
      pkg/services/sqlstore/user.go

@ -91,7 +91,7 @@ func CreateUser(cmd *m.CreateUserCommand) error {
Updated: time.Now(),
}
if setting.SingleAccountMode {
if setting.SingleAccountMode && !user.IsAdmin {
accountUser.Role = m.RoleType(setting.DefaultAccountRole)
}

Loading…
Cancel
Save