summaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-15 18:29:41 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-15 18:29:41 +0800
commit36b4c57ff13198196134b853f624fb633061734d (patch)
treee973d2aad41823e50c951a08ec8742030141d675 /modules/middleware/context.go
parent3e32b14ad4da2db1b05eeec73936dbbe79cecc45 (diff)
downloadgitea-36b4c57ff13198196134b853f624fb633061734d.tar.gz
gitea-36b4c57ff13198196134b853f624fb633061734d.zip
Finish new organization members and invitation page
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index aa1266d649..6ce0f6e1f7 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -68,7 +68,9 @@ type Context struct {
Org struct {
IsOwner bool
IsMember bool
+ IsAdminTeam bool // In owner team or team that has admin permission level.
Organization *models.User
+ OrgLink string
}
}
@@ -181,7 +183,6 @@ func Contexter() macaron.Handler {
Flash: f,
Session: sess,
}
-
// Compute current URL for real-time change language.
link := ctx.Req.RequestURI
i := strings.Index(link, "?")