Wednesday, October 30, 2024
1 change · master
Resolved issues and error corrections
Timesheet leaderboard rankings now take each user's access rules into account, including company-specific permissions. This helps ensure rankings are accurate and fair when employees can record time across different companies or restricted records.
Original PR description
Currently, ir.rules are totally ignored in the leaderboard calculation, leading to wrong ranking in some cases (e.g. ir.rule allowing the user to timesheet across companies). This PR aims to make the leaderboard cognizant to ir.rules, by making sure all the ir.rules are applied to every query used in the leaderboard calculation. task-4040044