Skip to content

Commit

Permalink
Fixed tapir accounts without linked share_owner not being able to see…
Browse files Browse the repository at this point in the history
… shift details.
  • Loading branch information
Theophile-Madet committed Jan 27, 2025
1 parent 1a1a9b3 commit 65387f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tapir/shifts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ def user_can_attend(self, user):
set(self.required_capabilities).issubset(user.shift_user_data.capabilities)
and self.shift.is_in_the_future()
and not self.shift.cancelled
and hasattr(user, "share_owner")
and user.share_owner.is_active(self.shift.start_time)
)

Expand Down

0 comments on commit 65387f0

Please sign in to comment.