diff --git a/symposion/reviews/utils.py b/symposion/reviews/utils.py index b91e8166b8a3ef961f09f69f9359d2da24a701e5..80e87e496fcc9c2cf7d219a05245896087359f14 100644 --- a/symposion/reviews/utils.py +++ b/symposion/reviews/utils.py @@ -2,16 +2,16 @@ def has_permission(user, proposal, speaker=False, reviewer=False): """ Returns whether or not ther user has permission to review this proposal, with the specified requirements. - - If ``speaker`` is ``True`` then the user can be one of the speakers for the + + If ``speaker`` is ``True`` then the user can be one of the speakers for the proposal. If ``reviewer`` is ``True`` the speaker can be a part of the reviewer group. """ if user.is_superuser: return True if speaker: - if (user == proposal.speaker.user or - proposal.additional_speakers.filter(user=user).exists()): + if user == proposal.speaker.user or \ + proposal.additional_speakers.filter(user=user).exists(): return True if reviewer: if user.groups.filter(name="reviewers").exists():