Role based restriction for manager to enter the PPBD as Salary and Location Start date
According to the Usecase 5 of Guidewell Mutual, the requirement for validating the pay period begin date as the effective start date has been implemented using the below code; but the client now wants to restrict line managers to be able to enter retro effective start dates; whereas HR Specialist is allowed to enter retro, current and future dates.
In the below code, I have added the restriction for being able to enter the retro dates but it will be applicable for any user. How can I restrict it just to the Line Manager role?
Version (include the version you are using, if applicable):