Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
#650 - added check so you can't review your own cr
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Jun 10, 2022
1 parent 13e94b1 commit 59c61ab
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const ChangeRequestDetails: React.FC = () => {

return (
<ChangeRequestDetailsView
isUserAllowedToReview={auth.user?.role !== 'GUEST' && auth.user?.role !== 'MEMBER'}
isUserAllowedToReview={
auth.user?.role !== 'GUEST' &&
auth.user?.role !== 'MEMBER' &&
auth.user?.userId !== data?.submitter.userId
}
isUserAllowedToImplement={auth.user?.role !== 'GUEST'}
changeRequest={data!}
/>
Expand Down

0 comments on commit 59c61ab

Please sign in to comment.