From 3f19be86078e6c6ffcfa552792263bbc362e39ac Mon Sep 17 00:00:00 2001 From: Arthur Date: Mon, 15 Apr 2024 08:23:45 -0700 Subject: [PATCH] 15582 move permission check --- netbox/core/api/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/netbox/core/api/views.py b/netbox/core/api/views.py index 35951f5bd..c95bfb22c 100644 --- a/netbox/core/api/views.py +++ b/netbox/core/api/views.py @@ -33,9 +33,6 @@ class DataSourceViewSet(NetBoxModelViewSet): """ Enqueue a job to synchronize the DataSource. """ - if not request.user.has_perm('core.sync_datasource'): - raise PermissionDenied("Syncing data sources requires the core.sync_datasource permission.") - datasource = get_object_or_404(DataSource, pk=pk) # have to check perms again against this specific object as there could be constraints