From a7235ed946ccb3f02a87ec2438ae87c235fa2d1b Mon Sep 17 00:00:00 2001 From: HGZ-20 Date: Fri, 1 Dec 2023 04:13:27 +0800 Subject: [PATCH] feat: add new_filtered_adapter() to FileAdapter to make it act as a FilterAdapter. fix: #304 add new_filtered_adapter() to FileAdapter to make it act as a FilterAdapter. And does not automatically load the policy when using the filter adapter. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ddd01626..d9851dd4 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ using an RwLock like so: `let e = Arc::new(RwLock::new(e));`. 11. **Priority**: the policy rules can be prioritized like firewall rules. ## How it works? - + In casbin-rs, an access control model is abstracted into a CONF file based on the **PERM metamodel (Policy, Effect, Request, Matchers)**. So switching or upgrading the authorization mechanism for a project is just as simple as modifying a configuration. You can customize your own access control model by combining the available models. For example, you can get RBAC roles and ABAC attributes together inside one model and share one set of policy rules. The most basic and simplest model in casbin-rs is ACL. ACL's model CONF is: