1
0
Fork 0
forked from forgejo/forgejo

Add APIContext

This commit is contained in:
Unknwon 2016-03-13 17:37:44 -04:00
parent b4f47a7623
commit db4da7beec
8 changed files with 93 additions and 63 deletions

View file

@ -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