Skip to content

Commit

Permalink
* Use is_superuser as this is built into django by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Jan 24, 2018
1 parent ced10a9 commit 0a4302d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_kala/api/basecamp_classic/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get(self, request, pk, format=None):
return Response({'categories': project.category_set.all().prefetch_related(), 'request_user': request.user})

def post(self, request, pk, format=None):
if not request.user.is_admin:
if not request.user.is_superuser:
raise PermissionDenied()

project = get_object_or_404(Project, pk=pk)
Expand Down

0 comments on commit 0a4302d

Please sign in to comment.