mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 01:35:55 +09:00
ui update, repo-assignment panic bug fix
This commit is contained in:
1 parent
cc3cbf8cbe
commit
c101471bdf
5 files changed
+7
-5
No files matched your search
@@ -24,7 +24,6 @@ func RepoAssignment(redirect bool) martini.Handler {
|
||||
|
||||
// get repository owner
|
||||
ctx.Repo.IsOwner = ctx.IsSigned && ctx.User.LowerName == params["username"]
|
||||
ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner
|
||||
|
||||
if !ctx.Repo.IsOwner {
|
||||
user, err = models.GetUserByName(params["username"])
|
||||
@@ -70,5 +69,6 @@ func RepoAssignment(redirect bool) martini.Handler {
|
||||
ctx.Data["Owner"] = user
|
||||
ctx.Data["Title"] = user.Name + "/" + repo.Name
|
||||
ctx.Data["RepositoryLink"] = ctx.Data["Title"]
|
||||
ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user