Fixed bug in user creation and admin role

This commit is contained in:
Torkel Ödegaard
2015-02-05 10:50:18 +01:00
parent 861e45aedf
commit 0f63c04beb
+1 -1
View File
@@ -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)
}