mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: refactor RBAC authorization functions to include usergroups
This commit is contained in:
parent
e1b3b62e40
commit
0df250c729
14 changed files with 392 additions and 37 deletions
|
|
@ -143,7 +143,7 @@ async def authorization_verify_based_on_org_admin_status(
|
|||
|
||||
|
||||
# Tested and working
|
||||
async def authorization_verify_based_on_roles_and_authorship(
|
||||
async def authorization_verify_based_on_roles_and_authorship_and_usergroups(
|
||||
request: Request,
|
||||
user_id: int,
|
||||
action: Literal["read", "update", "delete", "create"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue