** Changed in: openobject-server
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/598454
Title:
ORM: search should return empty list when meeting a NULL many2one in the
middle of the evaluation of a chained domain expression.
Status in OpenObject Server:
Fix Committed
Bug description:
Search should return empty list when meeting a NULL many2one in the middle of
the evaluation of a chained domain expression.
Given the record rule domain:
[('employee_id.department_id.manager_id.user_id.id', '=', user.id)]
Without the patch, the domain also matches objects whose employee is not in a
department, i.e. it explicitly searches for object for which
'employee_id.department_id IS NULL'.
This behavior is a security risk (potential information leakage).
I guess there could be a better way than my patch to handle this.
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp