casbin4d / Casbin4D

An authorization library that supports access control models like ACL, RBAC, ABAC in Delphi
https://casbin.org
Apache License 2.0
44 stars 16 forks source link

Both console and VCL demo doesn't work as expected #11

Closed ccy closed 2 years ago

ccy commented 3 years ago

I am using Delphi 10.4.2 to build the demo. I found that both demo doesn't return correct result:

Console demo fail at Assert(casbin.enforce(['bob', 'user', 'delete']) = True);

VCL demo never always return Deny.

hsluoyz commented 3 years ago

@jkour

jkour commented 3 years ago

@ccy, I think some parts need rewriting TBH.

Hadnt noticed that one you are mentioning but I think the classes pass all the tests, don't they

jkour commented 2 years ago

What VCL demo? Do you mean the MainDemo which if FMX?

jkour commented 2 years ago

@ccy Hi there, All tests pass now. See the master branch eb13b61ea7f6c9e588253ec23030b61e081b160b