Skip to content

Commit

Permalink
fix: typo during convert to json (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Autushenka <[email protected]>

Co-authored-by: Denis Autushenka <[email protected]>
  • Loading branch information
dautushenka and Denis Autushenka authored Dec 5, 2021
1 parent 6812871 commit 2db7af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/enforce.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2db7af4

Please sign in to comment.