summaryrefslogtreecommitdiffstats
path: root/modules/context/org.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 01:08:22 +0800
committerUnknwon <u@gogs.io>2016-07-24 01:08:22 +0800
commit1f2e173a745da8e4b57f96b5561a3c10054d3b76 (patch)
tree367f0f07e4fe1269ac0772e0561a4bf912b5153c /modules/context/org.go
parent46e96c008cf966428c9dad71c7871de88186e3fe (diff)
downloadgitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.tar.gz
gitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.zip
Refactor User.Id to User.ID
Diffstat (limited to 'modules/context/org.go')
-rw-r--r--modules/context/org.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/context/org.go b/modules/context/org.go
index 4cacdf4a18..f8fbf0c792 100644
--- a/modules/context/org.go
+++ b/modules/context/org.go
@@ -72,13 +72,13 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
ctx.Org.IsTeamMember = true
ctx.Org.IsTeamAdmin = true
} else if ctx.IsSigned {
- ctx.Org.IsOwner = org.IsOwnedBy(ctx.User.Id)
+ ctx.Org.IsOwner = org.IsOwnedBy(ctx.User.ID)
if ctx.Org.IsOwner {
ctx.Org.IsMember = true
ctx.Org.IsTeamMember = true
ctx.Org.IsTeamAdmin = true
} else {
- if org.IsOrgMember(ctx.User.Id) {
+ if org.IsOrgMember(ctx.User.ID) {
ctx.Org.IsMember = true
}
}
@@ -105,7 +105,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
return
}
} else {
- if err := org.GetUserTeams(ctx.User.Id); err != nil {
+ if err := org.GetUserTeams(ctx.User.ID); err != nil {
ctx.Handle(500, "GetUserTeams", err)
return
}