casbin / jcasbin

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

Dont see any user interactions in casbinJsGetPermissionForUser method #395

Closed z0mb1ek closed 3 months ago

z0mb1ek commented 4 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 4 months ago

@tangyang9464 @imp2002

z0mb1ek commented 4 months ago

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

hsluoyz commented 3 months ago

We should port the latest Go Casbin code to jCasbin