aboutsummaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
authorFlorian Kaiser <florian.kaiser@fnkr.net>2016-01-31 13:28:42 +0000
committerFlorian Kaiser <florian.kaiser@fnkr.net>2016-01-31 15:30:07 +0000
commite35791b2b2888979ba53b8a9a58e1cb132026914 (patch)
tree128e988ab9d46a56ae0448c068b23ed9a3b05d70 /modules/middleware/context.go
parent5eafe2b17eb9a1cf1068e7a3ed7a57a2730f04b0 (diff)
downloadgitea-e35791b2b2888979ba53b8a9a58e1cb132026914.tar.gz
gitea-e35791b2b2888979ba53b8a9a58e1cb132026914.zip
Only show teams the user has access to
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index d58967b891..59e95aada9 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -65,6 +65,7 @@ type Context struct {
Org struct {
IsOwner bool
IsMember bool
+ IsTeamMember bool // Is member of team.
IsAdminTeam bool // In owner team or team that has admin permission level.
Organization *models.User
OrgLink string