Skip to content

Commit eb879ff

Browse files
refactor: drop grouping decision in favor of more flexible approach
1 parent f51ddca commit eb879ff

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

docs/decisions/0006-policy-store-and-enforcement-model.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ Use a Casbin Model CONF that Supports Core Principles
2626
- Favor simple matchers to improve performance and maintainability. This means avoiding complex regexes and nested logic where possible.
2727
- Use Casbin's built-in support for role hierarchies (g, g2) to manage role inheritance and simplify policy definitions.
2828

29-
Do not Handle Grouping and Context Inheritance via Casbin's Built-in Mechanisms
30-
-------------------------------------------------------------------------------
31-
- Grouping resources will not be implemented via Casbin's built-in grouping mechanisms (g, g2) but will be explicitly managed when checking permissions in the application layer. For example, if a user has the ``course_admin`` role in ``org:123``, this will not automatically grant them the ``course_admin`` role in all courses within that org. Instead, the application layer will need to check both the user's role and the specific context (e.g., organization or course) when making authorization decisions.
32-
- Define roles that are context-specific, such as ``course_admin`` for a specific course or ``org_admin`` for a specific organization.
33-
3429
Establish Naming Conventions for Subjects, Actions, Objects, and Contexts
3530
-------------------------------------------------------------------------
3631
- Favor the use of simple and easy to read matchers and policies to keep the system maintainable. Revisit complexity if needed.

0 commit comments

Comments
 (0)