feat: enhance access layer governance and visibility checks
- Added new documentation references for access layer governance in CLAUDE.md, including multi-tenancy and endpoint audit guidelines. - Updated ACCESS_LAYER_AND_GOVERNANCE_PLAN.md to include cursor and heuristic checks for access layer compliance. - Enhanced ACCESS_LAYER_ENDPOINT_AUDIT.md to clarify endpoint visibility and governance requirements, including exemptions for certain routers. - Introduced library_content_visible_to_profile function in club_tenancy.py to streamline visibility checks for library content. - Updated exercise progression graphs router to utilize the new visibility function, improving access control. - Bumped application version to 0.8.27 and updated changelog to reflect these changes.
This commit is contained in:
1 parent
5aee9c52fc
commit
abee6171df
11 files changed
+192
-17
No files matched your search
@@ -127,6 +127,20 @@ def assert_valid_governance_visibility(
|
||||
assert_club_member(cur, profile_id, club_id)
|
||||
|
||||
|
||||
def library_content_visible_to_profile(
|
||||
cur,
|
||||
profile_id: int,
|
||||
visibility: str,
|
||||
content_club_id: Optional[int],
|
||||
created_by: Optional[int],
|
||||
global_role: Optional[str],
|
||||
) -> bool:
|
||||
"""Leserechte wie Übungen für alle Objekte mit visibility/club_id/created_by (Bibliothek & Co.)."""
|
||||
return exercise_visible_to_profile(
|
||||
cur, profile_id, visibility, content_club_id, created_by, global_role
|
||||
)
|
||||
|
||||
|
||||
def exercise_visible_to_profile(
|
||||
cur,
|
||||
profile_id: int,
|
||||
|
||||
Reference in new issue
Block a user