Update auth.go

This commit is contained in:
ACoolName 2024-05-25 18:03:39 +00:00
parent 3afd7c2eda
commit f9932f0362

View File

@ -90,7 +90,7 @@ func AuthorizedTo(requiredPermissions models.Permission, overwriters ...func(*gi
return return
} }
} }
ctx.AbortWithStatus(403) ctx.AbortWithStatusJSON(403, "matching permissions were not found")
return return
} }
} else { } else {