summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-17 13:12:28 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-17 13:12:28 +0800
commitc101471bdfd0a802e66adfb7402dbd980812da30 (patch)
tree0f1187da123cb1d978ef4331dd5dc11e4f023a41 /modules
parentcc3cbf8cbee4b28902abc7fccee60499bd4c1246 (diff)
downloadgitea-c101471bdfd0a802e66adfb7402dbd980812da30.tar.gz
gitea-c101471bdfd0a802e66adfb7402dbd980812da30.zip
ui update, repo-assignment panic bug fix
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 8cdc6df718..7a4157367e 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -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
}
}