From f9932f036257bb4d53f0f89839e02e48c069c85c Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sat, 25 May 2024 18:03:39 +0000 Subject: [PATCH] Update auth.go --- auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/auth.go b/auth/auth.go index 7ab2379..b58eb6d 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -90,7 +90,7 @@ func AuthorizedTo(requiredPermissions models.Permission, overwriters ...func(*gi return } } - ctx.AbortWithStatus(403) + ctx.AbortWithStatusJSON(403, "matching permissions were not found") return } } else {