diff options
| author | Pierre Masereel <pim@odoo.com> | 2017-01-16 11:18:54 +0100 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2017-01-16 16:42:18 +0100 |
| commit | 36f6f2647d615fad9010a673686c6b86bce5bf0a (patch) | |
| tree | a9c92fd3753b845b8de4e095e1f18d4240c64057 /addons/web/static/src/js/widgets/data_export.js | |
| parent | 9c774c370c51eb1b6e6f7b37e70493990d346107 (diff) | |
[FIX] hr: do not show employee users to portal users
When you are connected as a portal user, you can connect to the
backend of Odoo and if you go to your discuss app through the '@' icon,
you can list the employees of the company by mention a employee
This is caused by a SQL request that store in cache the employee
list to minimize requests when mention. The problem
is that those requests don't take into account the rights of a user
to read employees information.
To fix this, we are taking the group 'base.group_user' and read the
information of its users, the 'read' is respecting, the access rights of
the users, and so the employees names, are ont shown anymore to portal
users.
opw-704127
Diffstat (limited to 'addons/web/static/src/js/widgets/data_export.js')
0 files changed, 0 insertions, 0 deletions
