mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-02 11:45:49 +00:00
Fix hurl test
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ func CheckPermissions(c echo.Context, perms []string) error {
|
||||
|
||||
permissions_claims, ok := claims["permissions"]
|
||||
if !ok {
|
||||
return echo.NewHTTPError(403, fmt.Sprintf("Missing permissions: %s.", ", "))
|
||||
return echo.NewHTTPError(403, fmt.Sprintf("No permissions on this account. Needs permissions: %s.", strings.Join(perms, ", ")))
|
||||
}
|
||||
permissions_int, ok := permissions_claims.([]any)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user