-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
User in Organisation has no repo limit but the user itself has a limit of 0: Cannot create repo in organisation #15504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can anyone confirm this "issue"? |
I see, It's a ui bug, should recheck limit when switch |
Thanks for that! Is that change a candidate for the next release or does it need an explicit test by me? |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Whats the current state? |
push |
fix go-gitea#15504 Signed-off-by: a1012112796 <[email protected]>
i can confirm this bug running 1.16.8 docker image. actually i was looking for a fix. why not adding this to 1.17.x milestone? this is a key feature to self hosted. |
OK. Maybe we need another limitation. We already have these limitations.
So I think we may need another one.
|
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 confirm this bug, running 1.16.9. |
Anything new on that? I'd really see that fixed :/ |
|
My setup:
I've been using gitea since gitea-1.13.2, and MAX_CREATION_LIMIT have never effect to me - every new user I have to change the limit through the GUI. |
It explains your problem. I don't think the definitions about |
@lunny Can you please bring up a new status of that issue? It dont see any connection between the config variables and the mentioned UI problem or did I missed something?
|
@Commifreak and @lunny it always meant no limit |
I dont use -1 at all! |
Ah, yes. They made some confusions. The configuration item |
@Commifreak and @lunny |
Same problem. User cannot create a repository for the organization. But the above worked in gogs without problems. |
Is it clearly resolved? |
Closed by accident. |
Anything new? Gitea 1.19.3, org limit 1000, user limit -1 (0): User cannot create repo in its org. @gilbertoca So, you say both are different features? If that is true, it would be rather a feature request: Let org users create repos in it, even if the user have a repo limit (for personal repos). Why? We have public gitea instance with a public and private org. Users dont have rights to create OWN repos but they should create repos in the private org. |
@Commifreak and @lunny,
I see different things here: But I may have misunderstood the meaning. |
Any update on this issue? |
Do we need to precheck the user limit on that page in the first place? If user attempts to create a repository after reaching the limit it displays the message anyway so maybe we can just remove the precheck? |
This PR tries to finally fix the bug mentioned in #30011 and #15504, where the user repo limit is checked when creating a repo in an organization. Fix #30011 --------- Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: TheFox0x7 <[email protected]>
[x]
):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:
The text was updated successfully, but these errors were encountered: