Release v2.17.1: remove obsolete dashboard permission
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m9s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 31s

This commit is contained in:
lzstealth committed 2026-10-23 02:07:47 +01:00
1 parent 3ce4f70601
commit 6ce70ad7cb
7 files changed
+54 -6

No files matched your search

+14
View File
@@ -732,6 +732,20 @@ const VERSIONED_MIGRATIONS = [
await ensureColumn(pool, 'a_sessions', 'view_as_user_id', 'INT NULL', 'user_id');
await ensureColumn(pool, 'a_sessions', 'view_as_expires_at', 'DATETIME NULL', 'view_as_user_id');
}
},
{
version: '2.17.1',
label: 'v2.17.1 remove obsolete dashboard permission',
run: async function (pool) {
await pool.query(
`DELETE role_permissions
FROM a_role_permissions role_permissions
JOIN a_permissions permissions ON permissions.id = role_permissions.permission_id
WHERE permissions.permission_key = ?`,
['dashboard.allow']
);
await pool.query('DELETE FROM a_permissions WHERE permission_key = ?', ['dashboard.allow']);
}
}
];