Tuesday, June 25, 2024
1 change · saas-17.2
Resolved issues and error corrections
Planning users who do not have access to employee contracts can now create recurring shifts without being blocked by an access error. The change safely retrieves the needed contract end date in the background, keeping the Planning workflow usable while respecting access limitations.
Original PR description
Steps to reproduce: ------------------- With a user which has no access rights for 'Employees' and 'Contracts' and with admin rights for 'Planning', tries to add a new recurring shift (via the Planning module). Issue: ------ We get an access error. Cause: ------ We're trying to access the `contract_ids` field even though we don't have access rights. Solution: --------- Fetch the value of the `date_end` field in sudo so that this flow is not blocked for a planning user. opw-3992135