Commit 0f63c04b by Torkel Ödegaard

Fixed bug in user creation and admin role

parent 861e45ae
...@@ -91,7 +91,7 @@ func CreateUser(cmd *m.CreateUserCommand) error { ...@@ -91,7 +91,7 @@ func CreateUser(cmd *m.CreateUserCommand) error {
Updated: time.Now(), Updated: time.Now(),
} }
if setting.SingleAccountMode { if setting.SingleAccountMode && !user.IsAdmin {
accountUser.Role = m.RoleType(setting.DefaultAccountRole) accountUser.Role = m.RoleType(setting.DefaultAccountRole)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment