re-enabling system_admin
Этот коммит содержится в:
@@ -225,11 +225,6 @@ func cmdAssignRole() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !user.IsInRole(flagRole) {
|
if !user.IsInRole(flagRole) {
|
||||||
if flagRole == model.ROLE_SYSTEM_ADMIN && team.Name != "admin" {
|
|
||||||
l4g.Error("system_admin can only be added to a user in the admin team")
|
|
||||||
flushLogAndExit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
api.UpdateRoles(c, user, flagRole)
|
api.UpdateRoles(c, user, flagRole)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user