Fix Admin control to disable workspace creation for non-admin users (#14895)

fix #13460

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Ketan Mehta
2025-10-06 12:41:17 +05:30
committed by GitHub
parent cd4800eb86
commit 66d9a6d7bc
5 changed files with 48 additions and 1 deletions
@@ -90,7 +90,7 @@ describe('roles permissions', () => {
expect(resp.status).toBe(200);
expect(resp.body.errors).toBeUndefined();
expect(resp.body.data.getRoles).toHaveLength(5);
expect(resp.body.data.getRoles).toHaveLength(7);
const roles = resp.body.data.getRoles;
const guestRole = roles.find((role: any) => role.label === 'Guest');