fix(auth): checking for transition role when triggering transition

This commit is contained in:
Karol Sójko 2023-10-06 14:56:41 +02:00
parent dd72769841
commit 79a44aa51f
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -50,7 +50,7 @@ const requestTransition = async (
itemsTransitionStatus?.value === TransitionStatus.STATUSES.Verified &&
revisionsTransitionStatus?.value === TransitionStatus.STATUSES.Verified
if (userHasTransitionRole && bothTransitionStatusesAreVerified) {
if (!userHasTransitionRole && bothTransitionStatusesAreVerified) {
continue
}