feat: update access layer governance and visibility checks
- Enhanced ACCESS_LAYER_AND_GOVERNANCE_PLAN.md with additional details on heuristic checks and testing procedures for cross-tenant scenarios. - Updated club_tenancy.py to recommend using `library_content_visible_to_profile` for exercise visibility checks. - Refactored multiple routers to utilize `library_content_visible_to_profile`, improving consistency in access control across exercises and training planning. - Bumped application version to 0.8.28 and updated changelog to reflect these changes.
This commit is contained in:
1 parent
abee6171df
commit
e0ecfe927f
10 files changed
+108
-13
No files matched your search
@@ -149,6 +149,7 @@ def exercise_visible_to_profile(
|
||||
created_by: Optional[int],
|
||||
global_role: Optional[str],
|
||||
) -> bool:
|
||||
"""Leserechte einer Übung. Für neue Codepfade lieber `library_content_visible_to_profile` verwenden."""
|
||||
if is_platform_admin(global_role):
|
||||
return True
|
||||
if visibility == "official":
|
||||
|
||||
Reference in new issue
Block a user