Skip to content

Commit

Permalink
adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT authored Sep 23, 2024
1 parent e915789 commit 34dc839
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@


def check_engagement_access(engagement_id):
"""Check if user has access to get engagement details."""
"""
Check if user has access to get engagement details.
Public users will not be able to access engagement details if the engagement is unpublished or
if the send report setting is turned off.
Staff Users with the `ACCESS_DASHBOARD` role, such as administrators or team members,
will always have access to engagement details, regardless of the engagement's visibility settings.
"""
engagement_conditions = db.session.query(
exists()
.where(
Expand Down

0 comments on commit 34dc839

Please sign in to comment.