summaryrefslogtreecommitdiffstats
path: root/api4/oauth.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-12-01 08:21:44 -0500
committerGitHub <noreply@github.com>2017-12-01 08:21:44 -0500
commit239e8df3f4e94e71c08863fbaca72172c594fa22 (patch)
tree7ce70e4a8e3977565dff89723e83b3d4563102ca /api4/oauth.go
parent965a1bf7847d717683377521f5e77adb590851cf (diff)
downloadchat-239e8df3f4e94e71c08863fbaca72172c594fa22.tar.gz
chat-239e8df3f4e94e71c08863fbaca72172c594fa22.tar.bz2
chat-239e8df3f4e94e71c08863fbaca72172c594fa22.zip
Fix oauth app update (#7913)
Diffstat (limited to 'api4/oauth.go')
-rw-r--r--api4/oauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/oauth.go b/api4/oauth.go
index b11a070e4..b54a43832 100644
--- a/api4/oauth.go
+++ b/api4/oauth.go
@@ -100,7 +100,7 @@ func updateOAuthApp(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if c.Session.UserId != oauthApp.CreatorId && !c.App.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM_WIDE_OAUTH) {
+ if c.Session.UserId != oldOauthApp.CreatorId && !c.App.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM_WIDE_OAUTH) {
c.SetPermissionError(model.PERMISSION_MANAGE_SYSTEM_WIDE_OAUTH)
return
}