mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Refactor User.Id to User.ID
This commit is contained in:
@@ -48,7 +48,7 @@ func Get(ctx *context.APIContext) {
|
||||
// https://github.com/gogits/go-gogs-client/wiki/Organizations#edit-an-organization
|
||||
func Edit(ctx *context.APIContext, form api.EditOrgOption) {
|
||||
org := ctx.Org.Organization
|
||||
if !org.IsOwnedBy(ctx.User.Id) {
|
||||
if !org.IsOwnedBy(ctx.User.ID) {
|
||||
ctx.Status(403)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user