casbin-rs icon indicating copy to clipboard operation
casbin-rs copied to clipboard

get_all_actions get_all_objects

Open xiaobeiswift opened this issue 3 years ago • 1 comments

image in management_api.rs, fieldIndex parameter hardcoded 1, 2. But if the tokens of Policy will have an error if it is greater than 4. ex: ``` p,admin,domain1,data1,read ``` --- "examples/rbac_with_domains_policy.csv" the function get_all_actions() return "data1". get_all_objects() return "domain1"

xiaobeiswift avatar Jun 16 '21 00:06 xiaobeiswift

@xiaobeiswift this is a known issue. If there are many users complaining about it, we may improve this in future.

hsluoyz avatar Jun 17 '21 07:06 hsluoyz