概述
Introduction
Users in a Casdoor organization can access that organization’s applications by default. When you need to restrict access to specific applications or resources, use the Permission feature powered by Casbin.
Casbin concepts
To use permissions effectively, it helps to understand how Casbin works:
- Model: Defines the structure of your permission policies and how requests are matched and evaluated. Configure models on the Models page in Casdoor.
- Policy: Defines concrete permission rules (who can do what on which resources). Configure policies on the Permissions page in Casdoor.
- Adapter: Abstracts where policies are stored (e.g. files or a database). See Adapters for details.
提示
For more on Casbin’s access control models and patterns, see the Casbin documentation. Use the Casbin Online Editor to create and test Model and Policy files.