mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
migration: read logs permission (#9049)
continuation of https://github.com/Unleash/unleash/pull/8996
This commit is contained in:
parent
55f7de0d59
commit
608a3986af
13
src/migrations/20250102150900-add-permission-read-logs.js
Normal file
13
src/migrations/20250102150900-add-permission-read-logs.js
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user