We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a7027 commit acc1c37Copy full SHA for acc1c37
dinner_time/apps/company/views.py
@@ -73,7 +73,7 @@ class AllCompaniesView(ListAPIView):
73
)
74
class CompanyDetailView(ListAPIView):
75
serializer_class = CompanyGetSerializer
76
- permission_classes = [IsAdminUser]
+ permission_classes = [IsCompanyAuthenticated]
77
78
def get_queryset(self):
79
company_id = self.kwargs.get('company_id')
@@ -98,7 +98,7 @@ def get_queryset(self):
98
99
class CompanyChangeDetailView(UpdateAPIView):
100
101
102
103
def get_object(self):
104
company_id = self.kwargs.get("company_id")
0 commit comments