summaryrefslogtreecommitdiffstats
path: root/api/general.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/general.go')
-rw-r--r--api/general.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/general.go b/api/general.go
index 5e7780fdb..3091c1169 100644
--- a/api/general.go
+++ b/api/general.go
@@ -10,7 +10,6 @@ import (
l4g "github.com/alecthomas/log4go"
- "github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
@@ -36,7 +35,7 @@ func logClient(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if !app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) {
+ if !c.App.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) {
forceToDebug = true
}
}