casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.4k stars 464 forks source link

Dont see any user interactions in casbinJsGetPermissionForUser method #395

Closed z0mb1ek closed 5 months ago

z0mb1ek commented 6 months ago

Hi, there is parameter in method named user, for what purposes is it needed there? method always returns the same thing

casbin-bot commented 6 months ago

@tangyang9464 @imp2002

z0mb1ek commented 6 months ago

moreover in go library i see model.GetPolicy("g", ptype) I think it should be in java too.

hsluoyz commented 5 months ago

We should port the latest Go Casbin code to jCasbin