Implement posibility to check single right

This commit is contained in:
Sebastiaan
2025-06-07 22:39:03 +02:00
parent 7c515b8e8f
commit 48007734e5
6 changed files with 65 additions and 19 deletions

View File

@@ -61,7 +61,7 @@ def get_user_permissions(
current_user: CurrentUser,
rights: PermissionRight = None,
) -> User:
if not current_user.has_permission(module, part, rights):
if not current_user.has_permissions(module, part, rights):
raise HTTPException(
status_code=403, detail="The user doesn't have enough privileges"
)