Skip to content

Commit

Permalink
[#2037] Remove permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 9, 2016
1 parent 9ae08a6 commit 59513cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions akvo/rest/views/indicator_period_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ def indicator_upload_file(request, pk=None):
if not user:
return Response({'error': 'User is not logged in'}, status=status.HTTP_403_FORBIDDEN)

if not user.has_perm('rsr.change_project', update.period.indicator.result.project):
return Response({'error': 'User has no permission to place an update'},
status=status.HTTP_403_FORBIDDEN)
# TODO: Check if user is allowed to upload a file
# if not user.has_perm('rsr.change_project', update.period.indicator.result.project):
# return Response({'error': 'User has no permission to place an update'},
# status=status.HTTP_403_FORBIDDEN)

try:
file_type = request.POST.copy()['type']
Expand Down

0 comments on commit 59513cf

Please sign in to comment.