gitea: User in Organisation has no repo limit but the user itself has a limit of 0: Cannot create repo in organisation
- Gitea version (or commit ref): 1.14.1
- Git version:
- Operating system: Linux with your official docker image
- Database (use
[x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Log gist:
Description
I have created an organisation with a team which users have admin rights there. The organisation Repo-Limit ist 10000. When a user with a repo-limit of 0 (the user itself!) want to create a repo in this organisation, gitea show up an error, that his limit is exceeded.
Is this a wanted behaviour?
Screenshots

The user admin page:

The organisation admin page:

About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 24 (7 by maintainers)
Commits related to this issue
- fix ui bug when user can't create repo but org can fix #15504 Signed-off-by: a1012112796 <1012112796@qq.com> — committed to a1012112796/gitea by a1012112796 2 years ago
Ah, yes. They made some confusions. The configuration item
MAX_CREATION_LIMIT = -1means globally no limitation. But the value-1in the UI of org or user setting in admin means deriving from global configuration. The two-1have different concepts.Closed by accident.
-1means derive from global configuration which is in your instanceapp.ini.-1doesn’t mean no limitation.I think it is easier to tackle this problem just defining MAX_USER_REPOS and MAX_ORG_REPOS. So if any user is creating a repo for himself validate MAX_USER_REPOS and if the user is creating a repo for some organization just validate MAX_ORG_REPOS
I see, It’s a ui bug, should recheck limit when switch
Owner