summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-10 14:56:37 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-10 14:56:37 -0700
commit8bf35081c80a56051037d0bc374e9fec3fb9529e (patch)
treedf5bad1c0b9448ed02b475125ed618b3872a5078 /api/context.go
parente54d0da392119e75788f3d5a431b85e931a7e824 (diff)
downloadchat-8bf35081c80a56051037d0bc374e9fec3fb9529e.tar.gz
chat-8bf35081c80a56051037d0bc374e9fec3fb9529e.tar.bz2
chat-8bf35081c80a56051037d0bc374e9fec3fb9529e.zip
PLT-12 UI framework for admin console
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/context.go b/api/context.go
index 2beea2408..1852ed4d6 100644
--- a/api/context.go
+++ b/api/context.go
@@ -285,7 +285,8 @@ func (c *Context) HasPermissionsToChannel(sc store.StoreChannel, where string) b
}
func (c *Context) IsSystemAdmin() bool {
- if model.IsInRole(c.Session.Roles, model.ROLE_SYSTEM_ADMIN) && IsPrivateIpAddress(c.IpAddress) {
+ // TODO XXX FIXME && IsPrivateIpAddress(c.IpAddress)
+ if model.IsInRole(c.Session.Roles, model.ROLE_SYSTEM_ADMIN) {
return true
}
return false