summaryrefslogtreecommitdiffstats
path: root/modules/context/org.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-13 17:37:44 -0400
committerUnknwon <u@gogs.io>2016-03-13 17:37:44 -0400
commitdb4da7beecd6a8f65bfa264ba18a8cb12303921f (patch)
treee70f4669159a97ee538f305fce623452191b3ddb /modules/context/org.go
parentb4f47a762338abe6ce3a6e3d6d0896b8a387228d (diff)
downloadgitea-db4da7beecd6a8f65bfa264ba18a8cb12303921f.tar.gz
gitea-db4da7beecd6a8f65bfa264ba18a8cb12303921f.zip
Add APIContext
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