Skip to content

Commit 065dc0c

Browse files
committed
canWrite check should succeed for publicAgent #252
1 parent 23a2201 commit 065dc0c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This changelog covers all three packages, as they are (for now) updated as a who
1010
- Make web app installable #30
1111
- Add cookie based authentication #241
1212
- Get rid of `useWindowSize` #256
13+
- `canWrite` check should succeed for `publicAgent` #252
1314

1415
## v0.32.1
1516

lib/src/resource.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { instances } from './urls';
12
import {
23
Agent,
34
CommitBuilder,
@@ -79,6 +80,10 @@ export class Resource {
7980
return [true, undefined];
8081
}
8182

83+
if (writeArray && valToArray(writeArray).includes(instances.publicAgent)) {
84+
return [true, undefined];
85+
}
86+
8287
const parentSubject = this.get(properties.parent) as string;
8388

8489
if (!parentSubject) {

0 commit comments

Comments
 (0)