Skip to content

Commit

Permalink
Merge pull request #428 from gilgamezh/show_accepted_activities
Browse files Browse the repository at this point in the history
When activities are private allow access to accepted ones
  • Loading branch information
FedeG committed Oct 10, 2018
2 parents 6a50a72 + 913e62e commit 6b6185e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eventol/manager/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def _wrapped_view(request, *args, **kwargs):
event_slug = kwargs['event_slug']

if any([
activity.status == "2", # Accepted
not settings.PRIVATE_ACTIVITIES,
activity.owner.user == user,
user.is_authenticated() and is_reviewer(user, event_slug=event_slug)
Expand Down

0 comments on commit 6b6185e

Please sign in to comment.