Fakultas Ilmu Komputer UI

Commit dacbced4 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

[#140652771] [#21] [Refactor] update permission vacancy list

parent 2a08fd0f
......@@ -16,7 +16,7 @@ class VacancyViewSet(viewsets.ModelViewSet):
permission_classes = [IsAdminOrCompany]
def get_permissions(self):
if self.action in ["get", "list"]:
if self.action in ["retrieve", "list"]:
return [IsAuthenticated()]
return super(VacancyViewSet, self).get_permissions()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment