hsluoyz commented on issue #425:
URL: https://github.com/apache/casbin-rs/issues/425#issuecomment-6081884518

   Thanks for the report. You're right: all grouping assertions (`g`, `g2`, …) 
were sharing a single role manager, so a link added under one grouping type was 
also honored by the others. This is fixed in 
https://github.com/apache/casbin-rs/commit/7b569fa588ae3d97240f5c0b8dcd6debb2e40324.
 Each grouping type now gets its own role manager (as in Go Casbin), and your 
test case is included as a regression test. If you set a matching function on a 
type other than `g`, you now need to call `get_named_role_manager("g2")` 
instead of `get_role_manager()`. The fix will ship in the next release.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to