Этот коммит содержится в:
Christopher Speller
2017-09-06 20:43:18 -07:00
родитель fd86a2490e e589accdaf
Коммит 77709ccdda
10 изменённых файлов: 114 добавлений и 13 удалений

Просмотреть файл

@@ -41,6 +41,10 @@ func registerOAuthApp(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if !app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) {
oauthApp.IsTrusted = false
}
oauthApp.CreatorId = c.Session.UserId
rapp, err := c.App.CreateOAuthApp(oauthApp)