Skip to content

Commit

Permalink
Review stage check for DecideAction
Browse files Browse the repository at this point in the history
  • Loading branch information
miggol committed Dec 3, 2021
1 parent dd79a04 commit c7e2fed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reviews/utils/review_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@ def get_available_decision(self):
user = self.user
review = self.review

if review.stage != review.COMMISSION:
return False

try:
decision = Decision.objects.get(review=review,
reviewer=user,
go='',
)
except Decision.DoesNotExist:
return None
Expand Down

0 comments on commit c7e2fed

Please sign in to comment.