diff --git a/src/migrations/20241216141201-add-permission-auth-config.js b/src/migrations/20241216141201-add-permission-auth-config.js new file mode 100644 index 000000000000..33ce044d973c --- /dev/null +++ b/src/migrations/20241216141201-add-permission-auth-config.js @@ -0,0 +1,13 @@ +'use strict'; + +exports.up = function (db, cb) { + db.runSql(` + INSERT INTO permissions (permission, display_name, type) VALUES ('UPDATE_AUTH_CONFIGURATION', 'Change authentication settings (SSO)', 'root'); + `, cb); +} + +exports.down = function (db, cb) { + db.runSql(` + DELETE FROM permissions WHERE permission IN ('UPDATE_AUTH_CONFIGURATION'); + `, cb); +}