Skip to content

Commit

Permalink
ezqms-1069: fix new code
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
  • Loading branch information
lexiv0re committed Jul 25, 2024
1 parent 9cb27ee commit c8caa53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/controlled-documents-resources/src/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ async function getDocumentStateForCurrentUser (
return ControlledDocumentState.InReview
}

const currentAccount = getCurrentAccount()._id as Ref<PersonAccount>
if (reviewRequest.approved?.includes(currentAccount)) {
const me = (getCurrentAccount() as PersonAccount).person
if (reviewRequest.approved?.includes(me)) {
return ControlledDocumentState.Reviewed
}
}
Expand Down

0 comments on commit c8caa53

Please sign in to comment.