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

Why does get_roles_for_user take a &mut ref? #341

Open JonathanBrouwer opened 2 months ago

JonathanBrouwer commented 2 months ago

The function get_roles_for_user takes a &mut self. Is there a reason for this? The same applies for get_users_for_role, get_users_for_role, get_implicit_roles_for_user, and get_implicit_permissions_for_user