[permissions] Add workspace + security settings permission gates (#10204)
In this PR - closing https://github.com/twentyhq/core-team-issues/issues/313 - adding permission gates on workspace settings and security settings - adding integration tests for each of the protected setting and security
This commit is contained in:
@ -20,7 +20,7 @@ export const makeRestAPIRequest = ({
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
return client[method](`/rest${path}`)
|
||||
.set('Authorization', `Bearer ${ACCESS_TOKEN}`)
|
||||
.set('Authorization', `Bearer ${ADMIN_ACCESS_TOKEN}`)
|
||||
.set(headers)
|
||||
.send(body ? JSON.stringify(body) : undefined);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user