casbin-rs
casbin-rs copied to clipboard
get_all_actions get_all_objects
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 this is a known issue. If there are many users complaining about it, we may improve this in future.