Skip to content

Commit 046151e

Browse files
committed
Fix error string
1 parent 5229f60 commit 046151e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/org/member.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func PublicizeMember(ctx *context.APIContext) {
239239
if userToPublicize.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin {
240240
isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID)
241241
if err != nil {
242-
ctx.Error(http.StatusInternalServerError, "ChangeOrgUserStatus", err)
242+
ctx.Error(http.StatusInternalServerError, "IsOwnedBy", err)
243243
return
244244
}
245245
if !isOwner {
@@ -288,7 +288,7 @@ func ConcealMember(ctx *context.APIContext) {
288288
if userToConceal.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin {
289289
isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID)
290290
if err != nil {
291-
ctx.Error(http.StatusInternalServerError, "ChangeOrgUserStatus", err)
291+
ctx.Error(http.StatusInternalServerError, "IsOwnedBy", err)
292292
return
293293
}
294294
if !isOwner {

0 commit comments

Comments
 (0)