Setting MAX_CREATION_LIMIT globally or individually has no effect #13546

Closed
opened 2025-11-02 10:45:42 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @pat-s on GitHub (Sep 30, 2024).

Description

When setting repository.MAX_CREATION_LIMIT = 0, or alternatively setting the value to 0 for the individual user in the admin section, the user can still create repositories.

[repository]
MAX_CREATION_LIMIT = 0

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

.

Database

None

Originally created by @pat-s on GitHub (Sep 30, 2024). ### Description When setting `repository.MAX_CREATION_LIMIT = 0`, or alternatively setting the value to 0 for the individual user in the admin section, the user can still create repositories. ``` [repository] MAX_CREATION_LIMIT = 0 ``` ### Gitea Version 1.22.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? . ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:45:42 -06:00
Author
Owner

@pat-s commented on GitHub (Sep 30, 2024):

It works now, human error.

Though, what is still confusing: The actual value set in MAX_CREATION_LIMIT is nowhere reflected in the UI and still at -1 (which just means the overall default set in MAX_CREATION_LIMIT).

@pat-s commented on GitHub (Sep 30, 2024): It works now, human error. Though, what is still confusing: The actual value set in `MAX_CREATION_LIMIT` is nowhere reflected in the UI and still at `-1` (which just means the overall default set in `MAX_CREATION_LIMIT`).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13546