diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-16 13:50:20 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-16 13:50:20 -0700 |
commit | 41d2786e3e256acf22be18c96c036e84e0ae4fc9 (patch) | |
tree | 526e1fa3b1094feec7c7d885d9080be89ab00580 /api/context.go | |
parent | d31b3e413a71607f6f9593f414892cace955fb1a (diff) | |
download | chat-41d2786e3e256acf22be18c96c036e84e0ae4fc9.tar.gz chat-41d2786e3e256acf22be18c96c036e84e0ae4fc9.tar.bz2 chat-41d2786e3e256acf22be18c96c036e84e0ae4fc9.zip |
reworked logic to stem from post
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/context.go b/api/context.go index 0c9dee5c3..9f23d71a0 100644 --- a/api/context.go +++ b/api/context.go @@ -265,8 +265,8 @@ func (c *Context) IsSystemAdmin() bool { return false } -func (c *Context) IsTeamAdmin() bool { - if uresult := <-Srv.Store.User().Get(c.Session.UserId); uresult.Err != nil { +func (c *Context) IsTeamAdmin(userId string) bool { + if uresult := <-Srv.Store.User().Get(userId); uresult.Err != nil { c.Err = uresult.Err return false } else { |