casbin4d/Casbin4D

GetRolesForUser API

ErikQQY opened this issue · 8 comments

Is there GetRolesForUser API in Casbin4D?
I noticed there is GetRolesForUser API missing in Casbin website Get Started docs with Delphi example.

gwyHsI.png

@ErikQQY plz make a PR to remove Delphi tab in the docs.

jkour commented

Hi @ErikQQY ,

InPolicyManager, there is a method called rolesForEntity. Is this what you are looking for?

See the full documentation here: http://casbin4d.kouraklis.com

@jkour I think it is rolesForEntity, I will add it to the docs.

@hsluoyz Since I am migrating the docs, I will directly add this API in the migration.

@ErikQQY docs v1 still has updates these days. Make sure you know this.

OK, I got this :)

@ErikQQY so I suggest you putting it to V1 docs. Because it still needs quite a while to wait V2 site ready.

Fix this issue in #215, plz review @hsluoyz.