Skip to content

Commit

Permalink
migration: cors root role permission (#9080)
Browse files Browse the repository at this point in the history
after #8996
  • Loading branch information
Tymek authored Jan 13, 2025
1 parent cc55d8d commit af1b6c8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/migrations/20250110130010-add-permission-cors.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_CORS', 'Update CORS settings', 'root');
`, cb);
}

exports.down = function (db, cb) {
db.runSql(`
DELETE FROM permissions WHERE permission IN ('UPDATE_CORS');
`, cb);
}

0 comments on commit af1b6c8

Please sign in to comment.