Skip to content

Commit acc1c37

Browse files
committedJul 9, 2020
🐛 update permissions for company
1 parent 62a7027 commit acc1c37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎dinner_time/apps/company/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AllCompaniesView(ListAPIView):
7373
)
7474
class CompanyDetailView(ListAPIView):
7575
serializer_class = CompanyGetSerializer
76-
permission_classes = [IsAdminUser]
76+
permission_classes = [IsCompanyAuthenticated]
7777

7878
def get_queryset(self):
7979
company_id = self.kwargs.get('company_id')
@@ -98,7 +98,7 @@ def get_queryset(self):
9898
)
9999
class CompanyChangeDetailView(UpdateAPIView):
100100
serializer_class = CompanyGetSerializer
101-
permission_classes = [IsAdminUser]
101+
permission_classes = [IsCompanyAuthenticated]
102102

103103
def get_object(self):
104104
company_id = self.kwargs.get("company_id")

0 commit comments

Comments
 (0)
Please sign in to comment.