From 2db7af4908bbe3fdb6f3238e528c472d0337643f Mon Sep 17 00:00:00 2001 From: Denis Autushenka Date: Sun, 5 Dec 2021 19:08:14 +0300 Subject: [PATCH] fix: typo during convert to json (#15) Signed-off-by: Denis Autushenka Co-authored-by: Denis Autushenka --- client/enforce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/enforce.go b/client/enforce.go index b7337ba..b9b7029 100644 --- a/client/enforce.go +++ b/client/enforce.go @@ -79,7 +79,7 @@ func (e *Enforcer) Enforce(ctx context.Context, params ...interface{}) (bool, er var value string var err error if reflect.TypeOf(item).Kind() == reflect.Struct { - value, err = server.MakeABAC(data) + value, err = server.MakeABAC(item) if err != nil { return false, err }