mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +01:00
Delete Repository page has been implemented.
This commit is contained in:
@@ -42,6 +42,16 @@ trait RepositoryService { self: AccountService =>
|
||||
lastActivityDate = currentDate)
|
||||
}
|
||||
|
||||
def deleteRepository(userName: String, repositoryName: String): Unit = {
|
||||
Collaborators
|
||||
.filter { c => (c.userName is userName.bind) && (c.repositoryName is repositoryName.bind) }
|
||||
.delete
|
||||
|
||||
Repositories
|
||||
.filter { r => (r.userName is userName.bind) && (r.repositoryName is repositoryName.bind) }
|
||||
.delete
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of specified user's repositories information.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user