From 6ac427b804aa7bdc0e8afc882874c1eb5ce38caa Mon Sep 17 00:00:00 2001 From: Jan Ackermann Date: Thu, 15 Feb 2024 12:56:37 +0100 Subject: [PATCH] Sending wrong permission while creating share while resharing is disabled --- packages/web-client/src/helpers/share/role.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-client/src/helpers/share/role.ts b/packages/web-client/src/helpers/share/role.ts index 2a3d2674836..630f254213d 100644 --- a/packages/web-client/src/helpers/share/role.ts +++ b/packages/web-client/src/helpers/share/role.ts @@ -66,7 +66,7 @@ export abstract class ShareRole { public permissions(allowSharing: boolean): SharePermission[] { return this._permissions.filter((p: SharePermission) => { - if (p === SharePermissions.share) { + if (p.key === SharePermissions.share.key) { return allowSharing } return true