Skip to content

Commit

Permalink
Sending wrong permission while creating share while resharing is disa…
Browse files Browse the repository at this point in the history
…bled (#10489)
  • Loading branch information
AlexAndBear authored Feb 15, 2024
1 parent e2d5669 commit 884d25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-client/src/helpers/share/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 884d25d

Please sign in to comment.