mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
migration: add auth config permission (#8988)
after https://github.com/Unleash/unleash/pull/8987
This commit is contained in:
parent
9b15343a79
commit
4fb5f6a96c
13
src/migrations/20241216141201-add-permission-auth-config.js
Normal file
13
src/migrations/20241216141201-add-permission-auth-config.js
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user