From c0fec1084611d6789c1819dfe3e8e8f744af6340 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 4 Nov 2024 00:55:38 +0800 Subject: [PATCH] :bug: Bug fixes on check perm --- pkg/nex/sec/perms.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nex/sec/perms.go b/pkg/nex/sec/perms.go index 14ec172..67e9dba 100644 --- a/pkg/nex/sec/perms.go +++ b/pkg/nex/sec/perms.go @@ -44,7 +44,7 @@ func comparePermNode(held any, required any) bool { if isNumeric(requiredValue) && heldValue.Kind() == reflect.String { numericValue, _ := strconv.ParseFloat(heldValue.String(), 64) - return toFloat64(requiredValue) >= numericValue + return numericValue >= toFloat64(requiredValue) } switch heldValue.Kind() {