diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-10 15:06:55 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-10 15:06:55 -0700 |
commit | 6c23d67db61f74d9a8cf6b0bfc3573d962255bcb (patch) | |
tree | acb3a6ea514d48802025f1b9784a61f5ec6a2629 /mattermost.go | |
parent | 616593f434ef65e019edff6e766e959147f35b32 (diff) | |
download | chat-6c23d67db61f74d9a8cf6b0bfc3573d962255bcb.tar.gz chat-6c23d67db61f74d9a8cf6b0bfc3573d962255bcb.tar.bz2 chat-6c23d67db61f74d9a8cf6b0bfc3573d962255bcb.zip |
re-enabling system_admin
Diffstat (limited to 'mattermost.go')
-rw-r--r-- | mattermost.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mattermost.go b/mattermost.go index 950de2827..08963f016 100644 --- a/mattermost.go +++ b/mattermost.go @@ -225,11 +225,6 @@ func cmdAssignRole() { } 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) } |