summaryrefslogtreecommitdiffstats
path: root/api4/brand.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/brand.go')
-rw-r--r--api4/brand.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/brand.go b/api4/brand.go
index ce9f32b6d..ee48953dd 100644
--- a/api4/brand.go
+++ b/api4/brand.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"
)
@@ -55,7 +54,7 @@ func uploadBrandImage(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) {
c.SetPermissionError(model.PERMISSION_MANAGE_SYSTEM)
return
}