mirror of
https://github.com/go-gitea/gitea
synced 2024-11-21 14:21:39 +01:00
Fix error string
This commit is contained in:
parent
5229f6012e
commit
046151ef90
1 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ func PublicizeMember(ctx *context.APIContext) {
|
||||||
if userToPublicize.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin {
|
if userToPublicize.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin {
|
||||||
isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID)
|
isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Error(http.StatusInternalServerError, "ChangeOrgUserStatus", err)
|
ctx.Error(http.StatusInternalServerError, "IsOwnedBy", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !isOwner {
|
if !isOwner {
|
||||||
|
@ -288,7 +288,7 @@ func ConcealMember(ctx *context.APIContext) {
|
||||||
if userToConceal.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin {
|
if userToConceal.ID != ctx.Doer.ID && !ctx.Doer.IsAdmin {
|
||||||
isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID)
|
isOwner, err := ctx.Org.Organization.IsOwnedBy(ctx, ctx.Doer.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Error(http.StatusInternalServerError, "ChangeOrgUserStatus", err)
|
ctx.Error(http.StatusInternalServerError, "IsOwnedBy", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !isOwner {
|
if !isOwner {
|
||||||
|
|
Loading…
Reference in a new issue