Skip to content

Commit

Permalink
migration: add auth config permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Dec 16, 2024
1 parent 37b55ef commit e70f02a
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 e70f02a

Please sign in to comment.