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