fix(gateway): Profile 포괄 운영 권한 제거

This commit is contained in:
2026-08-17 16:07:46 +00:00
parent c2fccb58ab
commit b49332f5b9
16 changed files with 220 additions and 108 deletions
@@ -16,6 +16,22 @@ describe('legacy database transforms', () => {
expect(mapLegacyRoles(1, { che: ['reset', 'notice'] })).toEqual([
'admin.notice.manage:che:default',
'admin.reset.schedule:che:default',
'admin.scenarios.reset:che:default',
'user',
]);
expect(mapLegacyRoles(1, { hwe: ['openClose', 'update', 'fullUpdate'] })).toEqual([
'admin.profiles.deploy:hwe:default',
'admin.profiles.runtime:hwe:default',
'user',
]);
expect(mapLegacyRoles(6, {})).toEqual([
'admin.notice.manage',
'admin.profiles.deploy',
'admin.profiles.runtime',
'admin.profiles.settings',
'admin.reset.schedule',
'admin.resume.when-stopped',
'admin.scenarios.reset',
'user',
]);
});