casbin / Casbin.NET

An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#)
https://casbin.org
Apache License 2.0
1.13k stars 110 forks source link

Does using Casbin.NET support defining multiple M's in matchers? For example, m1 m2 #309

Closed qq1176914912 closed 3 months ago

qq1176914912 commented 1 year ago

When I configure the following figure in the conf file: image Error will be displayed: can not find the assertion at the section m and policy type m. 。 I don't know if. net temporarily doesn't support defining multiple M's in matchers, or if my writing is wrong. image

casbin-bot commented 1 year ago

@sagilio @sociometry @AsakusaRinne

sagilio0728 commented 3 months ago

Casbin,NET supports this feature, you can see the example here: https://github.com/casbin/Casbin.NET/blob/9cecadd615760838691e391150e1384c1ed9c560/Casbin.UnitTests/ModelTests/ModelTest.cs#L562-L602

sagilio0728 commented 3 months ago

close by https://github.com/casbin/Casbin.NET/pull/194