Chore: Use PermissionLevel instead of PermissionLevelString enum (#111399)

This commit is contained in:
Tom Ratcliffe
2025-10-07 12:19:57 +01:00
committed by GitHub
parent a64af68955
commit f5f34cd587
8 changed files with 16 additions and 35 deletions
@@ -37,7 +37,7 @@ const listFoldersHandler = () =>
const limit = parseInt(url.searchParams.get('limit') ?? '1000', 10);
const page = parseInt(url.searchParams.get('page') ?? '1', 10);
const tree = permission === 'Edit' ? mockTreeThatViewersCanEdit : mockTree;
const tree = permission?.toLowerCase() === 'edit' ? mockTreeThatViewersCanEdit : mockTree;
// reconstruct a folder API response from the flat tree fixture
const folders = tree