change permission_classes under class view instead of decorator
@@ -58,8 +58,9 @@ class UploadMeshAgent(APIView):
)
-@permission_classes([IsAuthenticated, CoreSettingsPerms])
class GetEditCoreSettings(APIView):
+ permission_classes = [IsAuthenticated, CoreSettingsPerms]
+
def get(self, request):
settings = CoreSettings.objects.first()
return Response(CoreSettingsSerializer(settings).data)
