diff options
Diffstat (limited to 'api4/context.go')
-rw-r--r-- | api4/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/context.go b/api4/context.go index 44334aabf..bf9794e4c 100644 --- a/api4/context.go +++ b/api4/context.go @@ -240,7 +240,7 @@ func (c *Context) LogDebug(err *model.AppError) { } func (c *Context) IsSystemAdmin() bool { - return app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) + return c.App.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) } func (c *Context) SessionRequired() { |