mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
Update permission names
This commit is contained in:
parent
4b40815ac6
commit
7ad00a14ca
@ -0,0 +1,24 @@
|
||||
exports.up = function (db, cb) {
|
||||
db.runSql(
|
||||
`
|
||||
UPDATE permissions SET display_name = 'Create Backend tokens' WHERE permission = 'CREATE_CLIENT_API_TOKEN';
|
||||
UPDATE permissions SET display_name = 'Update Backend tokens' WHERE permission = 'UPDATE_CLIENT_API_TOKEN';
|
||||
UPDATE permissions SET display_name = 'Delete Backend tokens' WHERE permission = 'DELETE_CLIENT_API_TOKEN';
|
||||
UPDATE permissions SET display_name = 'Read Backend tokens' WHERE permission = 'READ_CLIENT_API_TOKEN';
|
||||
|
||||
UPDATE permissions SET display_name = 'Create Frontend tokens' WHERE permission = 'CREATE_FRONTEND_API_TOKEN';
|
||||
UPDATE permissions SET display_name = 'Update Frontend tokens' WHERE permission = 'UPDATE_FRONTEND_API_TOKEN';
|
||||
UPDATE permissions SET display_name = 'Delete Frontend tokens' WHERE permission = 'DELETE_FRONTEND_API_TOKEN';
|
||||
UPDATE permissions SET display_name = 'Read Frontend tokens' WHERE permission = 'READ_FRONTEND_API_TOKEN';
|
||||
`,
|
||||
cb,
|
||||
);
|
||||
};
|
||||
|
||||
exports.down = function (db, cb) {
|
||||
db.runSql(
|
||||
`
|
||||
`,
|
||||
cb,
|
||||
);
|
||||
};
|
@ -75,14 +75,14 @@ You can assign the following root permissions:
|
||||
|
||||
| Permission Name | Description |
|
||||
|----------------------------|-------------------------------------------|
|
||||
| Read frontend API tokens | View [frontend API tokens](./api-tokens-and-client-keys#frontend-tokens). |
|
||||
| Create frontend API tokens | Create frontend API tokens. |
|
||||
| Update frontend API tokens | Update frontend API tokens. |
|
||||
| Delete frontend API tokens | Delete frontend API tokens. |
|
||||
| Read client API tokens | View [client API tokens](./api-tokens-and-client-keys#backend-tokens). |
|
||||
| Create client API tokens | Create client API tokens. |
|
||||
| Update client API tokens | Update client API tokens. |
|
||||
| Delete client API tokens | Delete client API tokens. |
|
||||
| Read Frontend tokens | View [Frontend tokens](./api-tokens-and-client-keys#frontend-tokens). |
|
||||
| Create Frontend tokens | Create Frontend tokens. |
|
||||
| Update Frontend tokens | Update Frontend tokens. |
|
||||
| Delete Frontend tokens | Delete Frontend tokens. |
|
||||
| Read Backend tokens | View [Backend tokens](./api-tokens-and-client-keys#backend-tokens). |
|
||||
| Create Backend tokens | Create Backend tokens. |
|
||||
| Update Backend tokens | Update Backend tokens. |
|
||||
| Delete Backend tokens | Delete Backend tokens. |
|
||||
|
||||
#### Application permissions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user