summaryrefslogtreecommitdiffstats
path: root/api4/reaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/reaction.go')
-rw-r--r--api4/reaction.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/reaction.go b/api4/reaction.go
index edfb1619e..a19b2460a 100644
--- a/api4/reaction.go
+++ b/api4/reaction.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"
)
@@ -92,7 +91,7 @@ func deleteReaction(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if c.Params.UserId != c.Session.UserId && !app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) {
+ if c.Params.UserId != c.Session.UserId && !c.App.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) {
c.SetPermissionError(model.PERMISSION_MANAGE_SYSTEM)
return
}