Finish delete organization

This commit is contained in:
Unknown committed 2014-06-28 00:40:07 -04:00
1 parent ee9b7f322f
commit 6e448b0714
11 files changed
+116 -27

No files matched your search

+1
View File
@@ -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)