[FIX] User can read his own password
lp bug: https://launchpad.net/bugs/322221 fixed bzr revid: stephane@tinyerp.com-20090128112014-besest79n8luqe8e
This commit is contained in:
parent
be0001900a
commit
a90653c98f
|
@ -111,7 +111,7 @@ class users(osv.osv):
|
|||
}
|
||||
def read(self,cr, uid, ids, fields=None, context=None, load='_classic_read'):
|
||||
def override_password(o):
|
||||
if 'password' in o:
|
||||
if 'password' in o and ( 'id' not in o or o['id'] != uid ):
|
||||
o['password'] = '********'
|
||||
return o
|
||||
|
||||
|
|
Loading…
Reference in New Issue