mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
fecbdd48a9
## About the changes This adds new permission to control access to project specific segments This should be used later for https://linear.app/unleash/issue/2-743/have-a-project-specific-configuration-section: ![image (11)](https://user-images.githubusercontent.com/455064/224277399-338ed0e6-f5e3-4318-a2cd-ac1300b60603.png)
15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`INSERT INTO permissions (permission, display_name, type) VALUES
|
|
('UPDATE_PROJECT_SEGMENT', 'Create/edit project segment', 'project');`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql(
|
|
`DELETE FROM permissions WHERE permission = 'UPDATE_PROJECT_SEGMENT';`,
|
|
cb,
|
|
);
|
|
};
|