Turn off permissions check bypassing for admins when hitting the execution environment list and detail views.

This commit is contained in:
Jeff Bradberry
2021-02-22 17:07:43 -05:00
committed by Shane McDonald
parent 5b2adc89cf
commit b417fc3803
2 changed files with 3 additions and 4 deletions

View File

@@ -688,6 +688,7 @@ class TeamAccessList(ResourceAccessList):
class ExecutionEnvironmentList(ListCreateAPIView):
always_allow_superuser = False
model = models.ExecutionEnvironment
serializer_class = serializers.ExecutionEnvironmentSerializer
swagger_topic = "Execution Environments"
@@ -695,6 +696,7 @@ class ExecutionEnvironmentList(ListCreateAPIView):
class ExecutionEnvironmentDetail(RetrieveUpdateDestroyAPIView):
always_allow_superuser = False
model = models.ExecutionEnvironment
serializer_class = serializers.ExecutionEnvironmentSerializer
swagger_topic = "Execution Environments"