Skip to content

Commit

Permalink
Profile: Check document for view access instead of folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sijualle committed Oct 15, 2024
1 parent 3baf1c2 commit d869257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timApp/user_profile/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ def default_profile_data():
return default_profile_data()

# When document is available, verify view privileges
# TODO: Add view access to profile pages for certain groups, or just require login to see profiles
if not edit_access:
verify_view_access(personal_folder)
verify_view_access(document_object)

profile_settings = document_object.document.get_settings()
profile_picture_path = profile_settings.get(
Expand Down

0 comments on commit d869257

Please sign in to comment.