Merge pull request #3302 from wwitzel3/fix-3153

prevent non-superusers from adding orphan users
This commit is contained in:
Wayne Witzel III
2016-08-23 15:16:57 -04:00
committed by GitHub
3 changed files with 23 additions and 14 deletions

View File

@@ -1153,6 +1153,7 @@ class UserList(ListCreateAPIView):
model = User
serializer_class = UserSerializer
permission_classes = (UserPermission,)
def post(self, request, *args, **kwargs):
ret = super(UserList, self).post( request, *args, **kwargs)