mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	| @@ -11,6 +11,7 @@ import ( | ||||
| 	"code.gitea.io/gitea/models/organization" | ||||
| 	"code.gitea.io/gitea/models/perm" | ||||
| 	user_model "code.gitea.io/gitea/models/user" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
| ) | ||||
|  | ||||
| // Organization contains organization context | ||||
| @@ -119,6 +120,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) { | ||||
| 	} | ||||
| 	ctx.Data["IsOrganizationOwner"] = ctx.Org.IsOwner | ||||
| 	ctx.Data["IsOrganizationMember"] = ctx.Org.IsMember | ||||
| 	ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled | ||||
| 	ctx.Data["IsPublicMember"] = func(uid int64) bool { | ||||
| 		is, _ := organization.IsPublicMembership(ctx.Org.Organization.ID, uid) | ||||
| 		return is | ||||
|   | ||||
		Reference in New Issue
	
	Block a user