Fix value of User.IsRestricted to default setting when oauth2 user auto registration; (#17839)

pull/17837/head^2
Galen Suen 3 years ago committed by GitHub
parent 72d82c5b6f
commit fbadc1a198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/web/user/auth.go

@ -688,6 +688,7 @@ func SignInOAuthCallback(ctx *context.Context) {
LoginType: login.OAuth2,
LoginSource: loginSource.ID,
LoginName: gothUser.UserID,
IsRestricted: setting.Service.DefaultUserIsRestricted,
}
if !createAndHandleCreatedUser(ctx, base.TplName(""), nil, u, &gothUser, setting.OAuth2Client.AccountLinking != setting.OAuth2AccountLinkingDisabled) {

Loading…
Cancel
Save