forked from forgejo/forgejo
Finish delete organization
This commit is contained in:
parent
ee9b7f322f
commit
6e448b0714
11 changed files with 116 additions and 27 deletions
|
@ -44,6 +44,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
|||
repoName := params["reponame"]
|
||||
refName := params["branchname"]
|
||||
|
||||
// TODO: need more advanced onwership and access level check.
|
||||
// Collaborators who have write access can be seen as owners.
|
||||
if ctx.IsSigned {
|
||||
ctx.Repo.IsOwner, err = models.HasAccess(ctx.User.Name, userName+"/"+repoName, models.WRITABLE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue