mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Pass access modes to PermissionReaders
This allows PermissionReaders to potentially only check the necessary access modes for potential performance optimization.
This commit is contained in:
@@ -3,7 +3,8 @@ import type { PermissionReader, PermissionReaderInput } from '../../../src/autho
|
||||
import { UnionPermissionReader } from '../../../src/authorization/UnionPermissionReader';
|
||||
|
||||
describe('A UnionPermissionReader', (): void => {
|
||||
const input: PermissionReaderInput = { credentials: {}, identifier: { path: 'http://test.com/foo' }};
|
||||
const input: PermissionReaderInput =
|
||||
{ credentials: {}, identifier: { path: 'http://test.com/foo' }, modes: new Set() };
|
||||
let readers: jest.Mocked<PermissionReader>[];
|
||||
let unionReader: UnionPermissionReader;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user