mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Finish Teams page
This commit is contained in:
		| @@ -36,7 +36,7 @@ func Home(ctx *middleware.Context, params martini.Params) { | ||||
| 	ctx.Data["Org"] = org | ||||
|  | ||||
| 	ctx.Data["Repos"], err = models.GetRepositories(org.Id, | ||||
| 		ctx.IsSigned && models.IsOrganizationMember(org.Id, ctx.User.Id)) | ||||
| 		ctx.IsSigned && org.IsOrgMember(ctx.User.Id)) | ||||
| 	if err != nil { | ||||
| 		ctx.Handle(500, "org.Home(GetRepositories)", err) | ||||
| 		return | ||||
| @@ -57,11 +57,6 @@ func Home(ctx *middleware.Context, params martini.Params) { | ||||
| 	ctx.HTML(200, HOME) | ||||
| } | ||||
|  | ||||
| func Members(ctx *middleware.Context, params martini.Params) { | ||||
| 	ctx.Data["Title"] = "Organization " + params["org"] + " Members" | ||||
| 	ctx.HTML(200, "org/members") | ||||
| } | ||||
|  | ||||
| func New(ctx *middleware.Context) { | ||||
| 	ctx.Data["Title"] = "Create An Organization" | ||||
| 	ctx.HTML(200, NEW) | ||||
| @@ -206,7 +201,7 @@ func DeletePost(ctx *middleware.Context, params martini.Params) { | ||||
| 	} | ||||
| 	ctx.Data["Org"] = org | ||||
|  | ||||
| 	if !models.IsOrganizationOwner(org.Id, ctx.User.Id) { | ||||
| 	if !org.IsOrgOwner(ctx.User.Id) { | ||||
| 		ctx.Error(403) | ||||
| 		return | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user