Skip to content
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

Prohibit fork creation when user reached maximum limit of repositories #21847

Closed
ghost opened this issue Nov 17, 2022 · 0 comments · Fixed by #21848
Closed

Prohibit fork creation when user reached maximum limit of repositories #21847

ghost opened this issue Nov 17, 2022 · 0 comments · Fixed by #21848
Labels
type/bug type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@ghost
Copy link

ghost commented Nov 17, 2022

Description

If user has reached the maximum limit of repositories:

  • they are not allowed to create repositories ✔
  • but they can still fork ❌

In a broad sense, fork is to create a repository.

Gitea Version

1.19.0+dev

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build from source

Database

SQLite

@ghost ghost added the type/bug label Nov 17, 2022
@ghost ghost self-assigned this Nov 17, 2022
@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Nov 21, 2022
jolheiser pushed a commit that referenced this issue Dec 27, 2022
…ries (#21848)

If user has reached the maximum limit of repositories:

- Before
  - disallow create
  - allow fork without limit
- This patch:
  - disallow create
  - disallow fork
- Add option `ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT` (Default **true**) :
enable this allow user fork repositories without maximum number limit

fixed #21847

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/bug type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant