fix release v2 recovery flows
This commit is contained in:
1 parent
ca856f9f54
commit
4905ea6738
44 files changed
+871
-201
No files matched your search
@@ -30,6 +30,18 @@ describe("constructIntegrationPermissions", () => {
|
||||
expect(result.hasUseAccess).toBe(true);
|
||||
});
|
||||
|
||||
test("should derive lower access levels from an unexpanded full permission", () => {
|
||||
const result = constructIntegrationPermissions(
|
||||
{ userPermissions: [], groupPermissions: [] },
|
||||
{
|
||||
user: { id: "2", permissions: ["integration-full-all"], colorScheme: "light" },
|
||||
expires: new Date().toISOString(),
|
||||
},
|
||||
);
|
||||
|
||||
expect(result).toEqual({ hasFullAccess: true, hasInteractAccess: true, hasUseAccess: true });
|
||||
});
|
||||
|
||||
test("should return hasInteractAccess as true when session permissions include integration-interact-all", () => {
|
||||
// Arrange
|
||||
const integration = {
|
||||
|
||||
Reference in new issue
Block a user