mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Only require append permissions on POST requests
This commit is contained in:
@@ -30,11 +30,11 @@ describe('A MethodPermissionsExtractor', (): void => {
|
||||
});
|
||||
});
|
||||
|
||||
it('requires write for POST operations.', async(): Promise<void> => {
|
||||
it('requires append for POST operations.', async(): Promise<void> => {
|
||||
await expect(extractor.handle({ method: 'POST' } as Operation)).resolves.toEqual({
|
||||
read: false,
|
||||
append: true,
|
||||
write: true,
|
||||
write: false,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user