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

MAX_CREATION_LIMIT #1757

Closed
2 of 7 tasks
ghost opened this issue May 19, 2017 · 1 comment · Fixed by #1762
Closed
2 of 7 tasks

MAX_CREATION_LIMIT #1757

ghost opened this issue May 19, 2017 · 1 comment · Fixed by #1762
Labels
Milestone

Comments

@ghost
Copy link

ghost commented May 19, 2017

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

Description

I am using the latest docker image for hosting. Have used the Postgresql linking method to setup my docker gitea installation.
After a normal setup, I login with my newly created admin account.
Then I setup SMTP source auth and change my own auth source to the newly created source.
Now I want to limit every new user that logs in to not be able to create any repositories.
Updating each and every user's setting is not feasible.
As per documentation, setting MAX_CREATION_LIMIT to zero should do the trick.

So I went back to the docker image docker exec -it gitea, performed opened the /data/gitea/conf/app.ini and set MAX_CREATION_LIMIT=0 in the repositories section just below the path variable.

Restarting with docker restart gitea though, has no affect on newly logged in users (via the SMTP source)

@appleboy
Copy link
Member

@exp10r3r Please see the PR #1762

@lunny lunny added this to the 1.2.0 milestone May 19, 2017
lunny pushed a commit that referenced this issue May 21, 2017
* fix: #1757 fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants