Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because there is no method to return list of roles for currentUser, we are using this logic:

Jelikož nám žádné metoda neumí vrátit seznam rolí pro currentUser používáme následující logiku:

Code Block
titleScript validator logic
1) We are comparing value in (AtA) with every possible value which is defined by name of Project Role and optionId of Custom Fields Authorized to Approve.
AND
2) We are comparing, if currentUser is in same Project Role. (hardcoded)
IF
Both condition are TRUE, transition is allowed.
ELSE
Transition is blocked and user got an error message, that he is not authorized to this Approval.

...