mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Use PermissionReaders to determine available permissions
These readers will determine which permissions are available for the incoming credentials. Their results then get combined in a UnionReader and authorized in a PermissionBasedAuthorizer
This commit is contained in:
@@ -89,7 +89,7 @@ describe.each(stores)('An LDP handler with auth using %s', (name, { storeConfig,
|
||||
// GET
|
||||
const response = await getResource(document);
|
||||
await expect(response.text()).resolves.toBe('TESTDATA');
|
||||
expect(response.headers.get('wac-allow')).toBe('user="read write append",public="read write append"');
|
||||
expect(response.headers.get('wac-allow')).toBe('user="append read write",public="append read write"');
|
||||
|
||||
// DELETE
|
||||
await deleteResource(document);
|
||||
|
||||
Reference in New Issue
Block a user