Saturday, October 19, 2024
1 change · saas-17.4
Resolved issues and error corrections
Users with Planning access but no Time Off access can now use the “Employees on time off” filter without hitting an access error. This keeps planning views usable for planners while respecting their configured permissions.
Original PR description
Steps to reproduce: - As admin > Settings > Users & Companies > Users - Edit Marc Demo's access rights: Planning: admin; Time off: blank - As Marc Demo > Planning app > Apply 'Employees on time off' filter Access denied due to missing read rights on model hr.leave. This is triggered by _get operations on fields request_unit_half and request_unit_hours and doesn't happen in earlier versions because we did not use to need the number_of_days in _get_leave_warning_parameters. opw-4222955