summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/components/custom_checkbox.js
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-01-21 14:55:53 +0000
committernie <nie@odoo.com>2021-02-01 12:05:39 +0000
commit036992d2d3ff132666085ff30d832f0f65d7afd4 (patch)
treed8853dee8c766fa0c6fccf9478defbc6f04d4406 /addons/web/static/src/js/components/custom_checkbox.js
parentd207a0fbe63c40eb879964ae6fb6c742d276fa5e (diff)
[FIX] hr_attendance: user can see other users attendances
Steps: - As admin, go to Settings > Users & Companies > Users - Edit Mark Demo (demo) - In Human Resources > Attendances, select Manual Attendance or blank - As demo, go to My Profile - Click the smart button showing the hours worked for the last month - Remove all filters Bug: The demo user, who hasn't the rights to see the other employees attendances, can see them. Explanation: Every user must have the right to read attendances in order to see their own attendances. Not giving the users the read rights in the security record rule prevents the record rule from being applied when reading attendances. This makes the read access rights the only rule and allows everyone to see the attendances of the others. This commit also fixes the default selected employee when going to the attendances tree view on these paths: - User - Employee - User > Employee In fact, sometime, `active_id` is the ÌD of the user and not of the employee. This leads to incorrect results since another employee's attendances are shown. Finally, this commit prevents users from creating attendances from other apps since only attendance officers and above can have access to the creation form within the Attendances app. opw:2440117 closes odoo/odoo#65330 X-original-commit: b3247c81200200590d669b76a58d06e6adf66d69 Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/components/custom_checkbox.js')
0 files changed, 0 insertions, 0 deletions