Skip to content

Commit

Permalink
migration: read logs permission (#9049)
Browse files Browse the repository at this point in the history
continuation of #8996
  • Loading branch information
Tymek authored Jan 8, 2025
1 parent 55f7de0 commit 608a398
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/migrations/20250102150900-add-permission-read-logs.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 ('READ_LOGS', 'Read instance logs and login history', 'root');
`, cb);
}

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

0 comments on commit 608a398

Please sign in to comment.