From 25ab4e6c270554478c30a257baa5adfcbdc750e0 Mon Sep 17 00:00:00 2001 From: DMehaffy Date: Thu, 1 Sep 2022 09:27:49 -0700 Subject: [PATCH] Revert "Merge pull request #40 from ConradP/fix-admin-permissions-table" This reverts commit 5bb2bfa68629bd3c0dbf68108162cc906801c676. --- v3-sql-v4-sql/migrate/helpers/adminHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3-sql-v4-sql/migrate/helpers/adminHelpers.js b/v3-sql-v4-sql/migrate/helpers/adminHelpers.js index 3b63463..dce0244 100644 --- a/v3-sql-v4-sql/migrate/helpers/adminHelpers.js +++ b/v3-sql-v4-sql/migrate/helpers/adminHelpers.js @@ -57,7 +57,7 @@ async function migrateAdminPermissions() { action: migrateUids(item.action), subject: migrateSubject(item.subject), properties: migrateProperties(item.properties), - conditions: item.conditions, + conditions: JSON.stringify(item.conditions), })); const roleLinks = items.map((item) => ({ permission_id: item.id,