Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
souravbadami authored and sid22 committed Sep 5, 2017
1 parent cd8f97f commit 97cad47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ def post(self, request, *args, **kwargs):


def UpdateIssue(request):
if request.method == "POST":
issue = Issue.objects.get(id=request.POST.get('issue_pk'))
issue = Issue.objects.get(id=request.POST.get('issue_pk'))
if request.method == "POST" and request.user.is_superuser or (issue is not None and request.user == issue.user):
if request.POST.get('action') == "close":
issue.status = "closed"
issue.closed_by = request.user
Expand Down

0 comments on commit 97cad47

Please sign in to comment.