feat: Add control permission to PermissionSet

This is in preparation of generalizing permissions
of auxiliary resources.
This commit is contained in:
Joachim Van Herwegen
2021-01-25 11:31:48 +01:00
parent 1486f01aaf
commit 766e6318ba
8 changed files with 24 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ describe('A WebAclAuthorizer', (): void => {
read: true,
append: false,
write: true,
control: false,
};
credentials = {};
identifier = { path: 'http://test.com/foo' };
@@ -169,6 +170,7 @@ describe('A WebAclAuthorizer', (): void => {
read: false,
write: false,
append: true,
control: false,
};
store.getRepresentation = async(): Promise<Representation> => ({ data: streamifyArray([
quad(nn('auth'), nn(`${acl}agent`), nn(credentials.webId!)),