Этот коммит содержится в:
JoramWilander
2017-09-06 16:24:34 -04:00
родитель f968c56890
Коммит d38328976e
8 изменённых файлов: 106 добавлений и 11 удалений

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

@@ -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 := app.CreateOAuthApp(oauthApp)