casbin / casbin-rs

An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
https://casbin.org
Apache License 2.0
861 stars 74 forks source link

get_all_actions get_all_objects #265

Closed xiaobeiswift closed 9 months ago

xiaobeiswift commented 3 years ago
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"

hsluoyz commented 3 years ago

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