Browse Source

Update res_users.py

pull/13/head
Mathias Markl 6 years ago
committed by GitHub
parent
commit
7fc8b075b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      muk_security/models/res_users.py

4
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)
Loading…
Cancel
Save