Browse Source

publish muk_security - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
1d69139dad
  1. 2
      muk_security/__manifest__.py
  2. 16
      muk_security/models/res_users.py

2
muk_security/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Security", "name": "MuK Security",
"summary": """Security Features""", "summary": """Security Features""",
"version": "12.0.1.5.3",
"version": "12.0.1.5.4",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"website": "http://www.mukit.at", "website": "http://www.mukit.at",

16
muk_security/models/res_users.py

@ -36,12 +36,10 @@ class AccessUser(models.Model):
#---------------------------------------------------------- #----------------------------------------------------------
@classmethod @classmethod
def _browse(cls, ids, env, prefetch=None):
access_ids = [
id if not isinstance(id, NoSecurityUid)
else super(NoSecurityUid, id).__int__()
for id in ids
]
return super(AccessUser, cls)._browse(
access_ids, env, prefetch=prefetch
)
def _browse(cls, ids, *args, **kwargs):
def convert_security_uid(id):
if isinstance(id, NoSecurityUid):
return super(NoSecurityUid, id).__int__()
return id
access_ids = [convert_security_uid(id) for id in ids]
return super(AccessUser, cls)._browse(access_ids, *args, **kwargs)
Loading…
Cancel
Save