瀏覽代碼

Fix migrations list policy label check

Daniel Vincze 4 年之前
父節點
當前提交
ced6151a75
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      coriolis/api/v1/migrations.py

+ 1 - 1
coriolis/api/v1/migrations.py

@@ -35,7 +35,7 @@ class MigrationController(api_wsgi.Controller):
             req.GET.get("show_deleted", None))
         context = req.environ["coriolis.context"]
         context.show_deleted = show_deleted
-        context.can(migration_policies.get_migrations_policy_label("show"))
+        context.can(migration_policies.get_migrations_policy_label("list"))
         return migration_view.collection(
             req, self._migration_api.get_migrations(
                 context, include_tasks=False))