Skip to content

Commit fec1095

Browse files
6543techknowlogick
authored andcommitted
[Docs] add usefull info to REQUIRE_SIGNIN_VIEW (#9848)
1 parent 6140325 commit fec1095

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ relation to port exhaustion.
309309
- `REQUIRE_EXTERNAL_REGISTRATION_PASSWORD`: **false**: Enable this to force externally created
310310
accounts (via GitHub, OpenID Connect, etc) to create a password. Warning: enabling this will
311311
decrease security, so you should only enable it if you know what you're doing.
312-
- `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page.
312+
- `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page or to use API.
313313
- `ENABLE_NOTIFY_MAIL`: **false**: Enable this to send e-mail to watchers of a repository when
314314
something happens, like creating issues. Requires `Mailer` to be enabled.
315315
- `ENABLE_BASIC_AUTHENTICATION`: **true**: Disable this to disallow authenticaton using HTTP

routers/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.Compare
351351
ctx.Data["Divergence"] = divergence
352352
allowUpdate, err := pull_service.IsUserAllowedToUpdate(pull, ctx.User)
353353
if err != nil {
354-
ctx.ServerError("GetDiverging", err)
354+
ctx.ServerError("IsUserAllowedToUpdate", err)
355355
return nil
356356
}
357357
ctx.Data["UpdateAllowed"] = allowUpdate

0 commit comments

Comments
 (0)