aboutsummaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
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, "?")