Browse Source

fix permission #12818

Abhimanyu Saharan 2 years ago
parent
commit
c8cbced55e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/core/api/views.py

+ 1 - 1
netbox/core/api/views.py

@@ -33,7 +33,7 @@ class DataSourceViewSet(NetBoxModelViewSet):
         """
         """
         Enqueue a job to synchronize the DataSource.
         Enqueue a job to synchronize the DataSource.
         """
         """
-        if not request.user.has_perm('extras.sync_datasource'):
+        if not request.user.has_perm('core.sync_datasource'):
             raise PermissionDenied("Syncing data sources requires the core.sync_datasource permission.")
             raise PermissionDenied("Syncing data sources requires the core.sync_datasource permission.")
 
 
         datasource = get_object_or_404(DataSource, pk=pk)
         datasource = get_object_or_404(DataSource, pk=pk)