1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00

fix: Trim out add tag permissions, for now at least

This commit is contained in:
sighphyre 2022-01-12 14:32:59 +02:00
parent bf4a144198
commit 7417be3f7f

View File

@ -1,33 +0,0 @@
exports.up = function (db, cb) {
db.runSql(
`
INSERT INTO permissions (permission, display_name, type) VALUES ('CREATE_TAG', 'Add tags to toggles', 'project');
INSERT INTO permissions (permission, display_name, type) VALUES ('DELETE_TAG', 'Remove tags from toggles', 'project');
INSERT INTO role_permission (role_id, permission_id, environment)
SELECT
(SELECT id as role_id from roles WHERE name = 'Editor' LIMIT 1),
p.id as permission_id,
'' as environment
FROM permissions p
WHERE p.permission IN
('CREATE_TAG',
'DELETE_TAG');
INSERT INTO role_permission (role_id, permission_id, environment)
SELECT
(SELECT id as role_id from roles WHERE name = 'Owner' LIMIT 1),
p.id as permission_id,
'' as environment
FROM permissions p
WHERE p.permission IN
('CREATE_TAG',
'DELETE_TAG');
`,
cb,
);
};
exports.down = function (db, cb) {
cb();
};