summaryrefslogtreecommitdiffstats
path: root/mattermost.go
diff options
context:
space:
mode:
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
commit6c23d67db61f74d9a8cf6b0bfc3573d962255bcb (patch)
treeacb3a6ea514d48802025f1b9784a61f5ec6a2629 /mattermost.go
parent616593f434ef65e019edff6e766e959147f35b32 (diff)
downloadchat-6c23d67db61f74d9a8cf6b0bfc3573d962255bcb.tar.gz
chat-6c23d67db61f74d9a8cf6b0bfc3573d962255bcb.tar.bz2
chat-6c23d67db61f74d9a8cf6b0bfc3573d962255bcb.zip
re-enabling system_admin
Diffstat (limited to 'mattermost.go')
-rw-r--r--mattermost.go5
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)
}