diff options
Diffstat (limited to 'api4/cluster.go')
-rw-r--r-- | api4/cluster.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/cluster.go b/api4/cluster.go index f79ef28a8..472b52f36 100644 --- a/api4/cluster.go +++ b/api4/cluster.go @@ -7,7 +7,6 @@ import ( "net/http" l4g "github.com/alecthomas/log4go" - "github.com/mattermost/mattermost-server/app" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/utils" ) @@ -19,7 +18,7 @@ func (api *API) InitCluster() { } func getClusterStatus(c *Context, w http.ResponseWriter, r *http.Request) { - if !app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) { + if !c.App.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) { c.SetPermissionError(model.PERMISSION_MANAGE_SYSTEM) return } |