From d8b6d772739992431b81de993f8adc783b00feb1 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Tue, 22 Aug 2023 15:40:16 -0400 Subject: [PATCH] 20829: Check parent for editable status Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- src/store/resources/resources.test.ts | 3 ++- src/store/resources/resources.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/store/resources/resources.test.ts b/src/store/resources/resources.test.ts index 503e19a2e8..64e19fe501 100644 --- a/src/store/resources/resources.test.ts +++ b/src/store/resources/resources.test.ts @@ -20,7 +20,7 @@ describe('resources', () => { const resourcesState = { [groupFixtures.editable_project_resource_uuid]: { uuid: groupFixtures.editable_project_resource_uuid, - ownerUuid: groupFixtures.user_uuid, + ownerUuid: groupFixtures.user_resource_uuid, createdAt: 'string', modifiedByClientUuid: 'string', modifiedByUserUuid: 'string', @@ -74,6 +74,7 @@ describe('resources', () => { href: 'string', kind: ResourceKind.USER, etag: 'string', + canWrite: true } }; diff --git a/src/store/resources/resources.ts b/src/store/resources/resources.ts index a063db9709..3f71140497 100644 --- a/src/store/resources/resources.ts +++ b/src/store/resources/resources.ts @@ -17,6 +17,11 @@ export const getResourceWithEditableStatus =