Skip to content

Commit

Permalink
migration: add auth config permission (#8988)
Browse files Browse the repository at this point in the history
after #8987
  • Loading branch information
Tymek authored Dec 17, 2024
1 parent 9b15343 commit 4fb5f6a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/migrations/20241216141201-add-permission-auth-config.js
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 4fb5f6a

Please sign in to comment.