You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] pos_hr: removed the isUserLoggedIn check from isAdmin in pos_store
Steps to reproduce the bug:
- Install point of sales app, employees app
- Make a shop and enable multiple employees per session option
- Add another user as a basic right user for any shop
- Open a shop session (the one rights are set up for)
- Log out of the current user and log in with the other user account
- Open the session
- The current logged-in user can close the session despite having
basic rights
Problem:
The close session in the XML was having a condition of
pos.employeeIsAdmin, and the employeeIsAdmin flag was checking if
the user is having advanced rights on the shop or it is the logged-in
Odoo user. So if you are the logged-in user, you will always have the
close register option regardless of the access rights you have for a
specific shop.
opw-4575692
closesodoo#198613
Signed-off-by: Joseph Caburnay (jcb) <[email protected]>
0 commit comments