Skip to content

Commit

Permalink
Fix json export bug in weekly snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
bibekdahal committed Jun 14, 2017
1 parent 19b2254 commit e3b04d1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions report/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from report.models import *
from deep.json_utils import *
from deep.filename_generator import generate_filename
from leads.templatetags.check_acaps import allow_acaps


@method_decorator(csrf_exempt, name='dispatch')
Expand All @@ -16,9 +15,6 @@ def post(self, request):
return JSON_METHOD_NOT_ALLOWED

def get(self, request):
if not allow_acaps(request.user):
return HttpResponseForbidden()

reports = WeeklyReport.objects.filter(event__usergroup__acaps=True)

event = request.GET.get('event')
Expand Down

0 comments on commit e3b04d1

Please sign in to comment.