diff options
author | Unknwon <u@gogs.io> | 2015-12-10 12:37:53 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-10 12:37:53 -0500 |
commit | 2a0bb1fa906a4d135ed88de4f705c3ab7214e60c (patch) | |
tree | 37d207458c999c5789fd6ca3a2c62d6700ed81b7 /conf | |
parent | c6083c335e53a860fd4c500a86dcdda49a16515e (diff) | |
download | gitea-2a0bb1fa906a4d135ed88de4f705c3ab7214e60c.tar.gz gitea-2a0bb1fa906a4d135ed88de4f705c3ab7214e60c.zip |
#1575 Limit repo creation
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 2 | ||||
-rw-r--r-- | conf/locale/locale_en-US.ini | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini index 20706308a3..4af04cb519 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -15,6 +15,8 @@ SCRIPT_TYPE = bash ANSI_CHARSET = ; Force every new repository to be private FORCE_PRIVATE = false +; Global maximum creation limit of repository per user, 0 means no limit +MAX_CREATION_LIMIT = 0 ; Patch test queue length, make it as large as possible PULL_REQUEST_QUEUE_LENGTH = 10000 diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 970487ef14..108da7e51d 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -359,6 +359,7 @@ watchers = Watchers stargazers = Stargazers forks = Forks +form.reach_limit_of_creation = The owner has reached maximum creation limit of %d repositories. form.name_reserved = Repository name '%s' is reserved. form.name_pattern_not_allowed = Repository name pattern '%s' is not allowed. @@ -855,6 +856,8 @@ users.auth_login_name = Authentication Login Name users.password_helper = Leave it empty to remain unchanged. users.update_profile_success = Account profile has been updated successfully. users.edit_account = Edit Account +users.max_repo_creation = Maximum Repository Creation Limit +users.max_repo_creation_desc = (Set 0 to use gloabl default limit) users.is_activated = This account is activated users.is_admin = This account has administrator permissions users.allow_git_hook = This account has permissions to create Git hooks |