mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 11:06:06 +01:00
Hide private repositories at the account page.
This commit is contained in:
@@ -87,7 +87,7 @@ trait CreateRepositoryControllerBase extends ControllerBase {
|
||||
def validate(name: String, value: String): Option[String] = {
|
||||
if(!value.matches("^[a-zA-Z0-9\\-_]+$")){
|
||||
Some("Repository name contains invalid character.")
|
||||
} else if(getRepositoriesOfUser(context.loginAccount.get.userName, baseUrl).contains(value)){
|
||||
} else if(getRepositoryNamesOfUser(context.loginAccount.get.userName).contains(value)){
|
||||
Some("Repository already exists.")
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user