Fix typo for issue1747
(transplanted from a4782e15c544e819ea995204b2413f78c10d63a5)
This commit is contained in:
1 parent
57b5394085
commit
c5a116da36
1 file changed
+1
-1
+1
-1
@@ -297,7 +297,7 @@ class User(ModelSQL, ModelView):
|
||||
if field not in fields or field == 'groups':
|
||||
del values_clean[field]
|
||||
if field == 'password':
|
||||
with Transaction.set_user(0):
|
||||
with Transaction().set_user(0):
|
||||
user = self.browse(user_id)
|
||||
if not self.get_login(user.login, old_password):
|
||||
self.raise_user_error('wrong_password')
|
||||
|
||||
Reference in new issue
Block a user