@@ -50,7 +50,7 @@ public function __construct(
5050 #[Route(
5151 path: '/api/_action/migration/get-profile-information ' ,
5252 name: 'api.admin.migration.get-profile-information ' ,
53- defaults: ['_acl ' => ['admin ' ]],
53+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
5454 methods: [Request::METHOD_GET ]
5555 )]
5656 public function getProfileInformation (Request $ request ): Response
@@ -117,7 +117,7 @@ public function getProfileInformation(Request $request): Response
117117 #[Route(
118118 path: '/api/_action/migration/get-profiles ' ,
119119 name: 'api.admin.migration.get-profiles ' ,
120- defaults: ['_acl ' => ['admin ' ]],
120+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
121121 methods: [Request::METHOD_GET ]
122122 )]
123123 public function getProfiles (): JsonResponse
@@ -140,7 +140,7 @@ public function getProfiles(): JsonResponse
140140 #[Route(
141141 path: '/api/_action/migration/get-gateways ' ,
142142 name: 'api.admin.migration.get-gateways ' ,
143- defaults: ['_acl ' => ['admin ' ]],
143+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
144144 methods: [Request::METHOD_GET ]
145145 )]
146146 public function getGateways (Request $ request ): JsonResponse
@@ -168,7 +168,7 @@ public function getGateways(Request $request): JsonResponse
168168 #[Route(
169169 path: '/api/_action/migration/update-connection-credentials ' ,
170170 name: 'api.admin.migration.update-connection-credentials ' ,
171- defaults: ['_acl ' => ['admin ' ]],
171+ defaults: ['_acl ' => ['swag_migration.editor ' ]],
172172 methods: [Request::METHOD_POST ]
173173 )]
174174 public function updateConnectionCredentials (Request $ request , Context $ context ): Response
@@ -195,7 +195,7 @@ public function updateConnectionCredentials(Request $request, Context $context):
195195 #[Route(
196196 path: '/api/_action/migration/data-selection ' ,
197197 name: 'api.admin.migration.data-selection ' ,
198- defaults: ['_acl ' => ['admin ' ]],
198+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
199199 methods: [Request::METHOD_GET ]
200200 )]
201201 public function getDataSelection (Request $ request , Context $ context ): JsonResponse
@@ -222,7 +222,7 @@ public function getDataSelection(Request $request, Context $context): JsonRespon
222222 #[Route(
223223 path: '/api/_action/migration/check-connection ' ,
224224 name: 'api.admin.migration.check-connection ' ,
225- defaults: ['_acl ' => ['admin ' ]],
225+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
226226 methods: [Request::METHOD_POST ]
227227 )]
228228 public function checkConnection (Request $ request , Context $ context ): JsonResponse
@@ -248,7 +248,7 @@ public function checkConnection(Request $request, Context $context): JsonRespons
248248 #[Route(
249249 path: '/api/_action/migration/start-migration ' ,
250250 name: 'api.admin.migration.start-migration ' ,
251- defaults: ['_acl ' => ['admin ' ]],
251+ defaults: ['_acl ' => ['swag_migration.creator ' ]],
252252 methods: [Request::METHOD_POST ]
253253 )]
254254 public function startMigration (Request $ request , Context $ context ): Response
@@ -281,7 +281,7 @@ public function startMigration(Request $request, Context $context): Response
281281 #[Route(
282282 path: '/api/_action/migration/get-state ' ,
283283 name: 'api.admin.migration.get-state ' ,
284- defaults: ['_acl ' => ['admin ' ]],
284+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
285285 methods: [Request::METHOD_GET ]
286286 )]
287287 public function getState (Context $ context ): JsonResponse
@@ -292,7 +292,7 @@ public function getState(Context $context): JsonResponse
292292 #[Route(
293293 path: '/api/_action/migration/approve-finished ' ,
294294 name: 'api.admin.migration.approveFinished ' ,
295- defaults: ['_acl ' => ['admin ' ]],
295+ defaults: ['_acl ' => ['swag_migration.editor ' ]],
296296 methods: [Request::METHOD_POST ]
297297 )]
298298 public function approveFinishedMigration (Context $ context ): Response
@@ -313,7 +313,7 @@ public function approveFinishedMigration(Context $context): Response
313313 #[Route(
314314 path: '/api/_action/migration/abort-migration ' ,
315315 name: 'api.admin.migration.abort-migration ' ,
316- defaults: ['_acl ' => ['admin ' ]],
316+ defaults: ['_acl ' => ['swag_migration.editor ' ]],
317317 methods: [Request::METHOD_POST ]
318318 )]
319319 public function abortMigration (Context $ context ): Response
@@ -330,7 +330,7 @@ public function abortMigration(Context $context): Response
330330 #[Route(
331331 path: '/api/_action/migration/reset-checksums ' ,
332332 name: 'api.admin.migration.reset-checksums ' ,
333- defaults: ['_acl ' => ['admin ' ]],
333+ defaults: ['_acl ' => ['swag_migration.deleter ' ]],
334334 methods: [Request::METHOD_POST ]
335335 )]
336336 public function resetChecksums (Request $ request , Context $ context ): Response
@@ -355,7 +355,7 @@ public function resetChecksums(Request $request, Context $context): Response
355355 #[Route(
356356 path: '/api/_action/migration/cleanup-migration-data ' ,
357357 name: 'api.admin.migration.cleanup-migration-data ' ,
358- defaults: ['_acl ' => ['admin ' ]],
358+ defaults: ['_acl ' => ['swag_migration.deleter ' ]],
359359 methods: [Request::METHOD_POST ]
360360 )]
361361 public function cleanupMigrationData (Context $ context ): Response
@@ -368,7 +368,7 @@ public function cleanupMigrationData(Context $context): Response
368368 #[Route(
369369 path: '/api/_action/migration/get-reset-status ' ,
370370 name: 'api.admin.migration.get-reset-status ' ,
371- defaults: ['_acl ' => ['admin ' ]],
371+ defaults: ['_acl ' => ['swag_migration.viewer ' ]],
372372 methods: [Request::METHOD_GET ]
373373 )]
374374 public function getResetStatus (Context $ context ): JsonResponse
0 commit comments