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

feat: Add Matching Funcs to IEnforcer interface #339

Closed zredinger-ccc closed 4 months ago

zredinger-ccc commented 4 months ago

The IEnforcer did not have the AddMatchingFunc, AddDomainMatchingFunc, AddNamedMatchingFunc, or AddNamedDomainMatchingFunc in its interface. These are also returning the enforcer which isn't consistent with the Go implementation and seems unnecessary unless you are looking to chain the funcs.

casbin-bot commented 4 months ago

@sagilio please review

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 2.3.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: