Skip to content

Commit

Permalink
Merge pull request #42179 from neonbhai/write-capability-fix
Browse files Browse the repository at this point in the history
[Invoice Rooms] Write capability fix
  • Loading branch information
Beamanator authored Jun 9, 2024
2 parents 4176e95 + ef7de5d commit f3bb5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6038,7 +6038,7 @@ function shouldDisableRename(report: OnyxEntry<Report>, policy: OnyxEntry<Policy
* @param policy - the workspace the report is on, null if the user isn't a member of the workspace
*/
function canEditWriteCapability(report: OnyxEntry<Report>, policy: OnyxEntry<Policy>): boolean {
return PolicyUtils.isPolicyAdmin(policy) && !isAdminRoom(report) && !isArchivedRoom(report) && !isThread(report);
return PolicyUtils.isPolicyAdmin(policy) && !isAdminRoom(report) && !isArchivedRoom(report) && !isThread(report) && !isInvoiceRoom(report);
}

/**
Expand Down

0 comments on commit f3bb5a5

Please sign in to comment.