From 046151ef9070846cae0fbb03d0dd7d6e6282b18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C5=BDen=C4=8D=C3=A1k?= Date: Fri, 2 Feb 2024 11:07:19 +0100 Subject: [PATCH] Fix error string --- routers/api/v1/org/member.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go index f9a7445bcf..f69c661421 100644 --- a/routers/api/v1/org/member.go +++ b/routers/api/v1/org/member.go @@ -239,7 +239,7 @@ func PublicizeMember(ctx *context.APIContext) { if userToPublicize.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin { isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID) if err != nil { - ctx.Error(http.StatusInternalServerError, "ChangeOrgUserStatus", err) + ctx.Error(http.StatusInternalServerError, "IsOwnedBy", err) return } if !isOwner { @@ -288,7 +288,7 @@ func ConcealMember(ctx *context.APIContext) { if userToConceal.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin { isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID) if err != nil { - ctx.Error(http.StatusInternalServerError, "ChangeOrgUserStatus", err) + ctx.Error(http.StatusInternalServerError, "IsOwnedBy", err) return } if !isOwner {