DEFAULT_PRIVATE not woring when enabled #2032

Closed
opened 2025-11-02 04:21:44 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @leepfrog-ger on GitHub (Jul 9, 2018).

  • Gitea version (or commit ref): 1.4.2
  • Git version: not relevant
  • Operating system: Windows
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Setting DEFAULT_PRIVATE = true has no effect for me. No matter if that option is set to true or false the "private" checkbox is not ticked.

Setting FORCE_PRIVATE = true works as expected (checkbox is ticked and cannot be unticked)

Originally created by @leepfrog-ger on GitHub (Jul 9, 2018). - Gitea version (or commit ref): 1.4.2 - Git version: not relevant - Operating system: Windows - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [x] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant ## Description Setting `DEFAULT_PRIVATE = true` has no effect for me. No matter if that option is set to true or false the "private" checkbox is not ticked. Setting `FORCE_PRIVATE = true` works as expected (checkbox is ticked and cannot be unticked)
GiteaMirror added the type/question label 2025-11-02 04:21:44 -06:00
Author
Owner

@seese commented on GitHub (Oct 30, 2018):

I think "true" is not a valid value for the key DEFAULT_PRIVATE. Try "private" instead.

; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used.
DEFAULT_PRIVATE = last

@seese commented on GitHub (Oct 30, 2018): I think "true" is not a valid value for the key DEFAULT_PRIVATE. Try "private" instead. ; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used. DEFAULT_PRIVATE = last
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2032