summaryrefslogtreecommitdiffstats
path: root/routers/org/members.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/org/members.go')
-rw-r--r--routers/org/members.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/org/members.go b/routers/org/members.go
index 1d720ce617..15998aa274 100644
--- a/routers/org/members.go
+++ b/routers/org/members.go
@@ -44,17 +44,17 @@ func MembersAction(ctx *context.Context) {
var err error
switch ctx.Params(":action") {
case "private":
- if ctx.User.Id != uid && !ctx.Org.IsOwner {
+ if ctx.User.ID != uid && !ctx.Org.IsOwner {
ctx.Error(404)
return
}
- err = models.ChangeOrgUserStatus(org.Id, uid, false)
+ err = models.ChangeOrgUserStatus(org.ID, uid, false)
case "public":
- if ctx.User.Id != uid && !ctx.Org.IsOwner {
+ if ctx.User.ID != uid && !ctx.Org.IsOwner {
ctx.Error(404)
return
}
- err = models.ChangeOrgUserStatus(org.Id, uid, true)
+ err = models.ChangeOrgUserStatus(org.ID, uid, true)
case "remove":
if !ctx.Org.IsOwner {
ctx.Error(404)
@@ -67,7 +67,7 @@ func MembersAction(ctx *context.Context) {
return
}
case "leave":
- err = org.RemoveMember(ctx.User.Id)
+ err = org.RemoveMember(ctx.User.ID)
if models.IsErrLastOrgOwner(err) {
ctx.Flash.Error(ctx.Tr("form.last_org_owner"))
ctx.Redirect(ctx.Org.OrgLink + "/members")
@@ -109,7 +109,7 @@ func Invitation(ctx *context.Context) {
return
}
- if err = org.AddMember(u.Id); err != nil {
+ if err = org.AddMember(u.ID); err != nil {
ctx.Handle(500, " AddMember", err)
return
}