Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

566 B
Raw Blame
<?php

/* * This migration adds a column to the admin table letting the admin opt
* standard (non-admin) users into the existing Webhook Allowlist for
* notification SSRF checks. Without it, any private/internal address is
* always blocked for standard users regardless of the allowlist.
*/

$column = $db->query("SELECT * FROM pragma_table_info('admin') WHERE name='allow_standard_users_local_webhooks'");
if ($column->fetchArray(SQLITE3_ASSOC) === false) {
    $db->exec('ALTER TABLE admin ADD COLUMN allow_standard_users_local_webhooks INTEGER DEFAULT 0');
}

?>