summaryrefslogtreecommitdiffstats
path: root/modules/context/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/org.go')
-rw-r--r--modules/context/org.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/context/org.go b/modules/context/org.go
index 0f691fcdd1..4cacdf4a18 100644
--- a/modules/context/org.go
+++ b/modules/context/org.go
@@ -13,6 +13,17 @@ import (
"github.com/gogits/gogs/modules/setting"
)
+type Organization struct {
+ IsOwner bool
+ IsMember bool
+ IsTeamMember bool // Is member of team.
+ IsTeamAdmin bool // In owner team or team that has admin permission level.
+ Organization *models.User
+ OrgLink string
+
+ Team *models.Team
+}
+
func HandleOrgAssignment(ctx *Context, args ...bool) {
var (
requireMember bool