summaryrefslogtreecommitdiffstats
path: root/routers/org/org.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-29 16:30:41 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-29 16:30:41 -0400
commite4ea5cf5984652e3966825bc2b68dd1abc3eef1c (patch)
tree7647c242061c1ab022db880733f0219f0af5bd2c /routers/org/org.go
parent99713e1180ad149faf6442bba311fec6e501aa00 (diff)
downloadgitea-e4ea5cf5984652e3966825bc2b68dd1abc3eef1c.tar.gz
gitea-e4ea5cf5984652e3966825bc2b68dd1abc3eef1c.zip
Finish Teams page
Diffstat (limited to 'routers/org/org.go')
-rw-r--r--routers/org/org.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index ba4adc5b5a..337fe89eb7 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -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
}