From 7fc8b075b8f8ff90466ff85503a5b5740a5cc298 Mon Sep 17 00:00:00 2001 From: Mathias Markl Date: Thu, 21 Feb 2019 12:58:32 +0100 Subject: [PATCH] Update res_users.py --- muk_security/models/res_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muk_security/models/res_users.py b/muk_security/models/res_users.py index b9131ef..e14f05a 100644 --- a/muk_security/models/res_users.py +++ b/muk_security/models/res_users.py @@ -52,8 +52,8 @@ class AccessUser(models.Model): @classmethod def _browse(cls, ids, *args, **kwargs): def convert_security_uid(id): - if isinstance(id, NoSecurityUid): - return super(NoSecurityUid, id).__int__() + if isinstance(id, helper.NoSecurityUid): + return super(helper.NoSecurityUid, id).__int__() return id access_ids = [convert_security_uid(id) for id in ids] return super(AccessUser, cls)._browse(access_ids, *args, **kwargs)