Mathias Markl
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
muk_security/models/res_users.py
|
@ -52,8 +52,8 @@ class AccessUser(models.Model): |
|
|
@classmethod |
|
|
@classmethod |
|
|
def _browse(cls, ids, *args, **kwargs): |
|
|
def _browse(cls, ids, *args, **kwargs): |
|
|
def convert_security_uid(id): |
|
|
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 |
|
|
return id |
|
|
access_ids = [convert_security_uid(id) for id in ids] |
|
|
access_ids = [convert_security_uid(id) for id in ids] |
|
|
return super(AccessUser, cls)._browse(access_ids, *args, **kwargs) |
|
|
return super(AccessUser, cls)._browse(access_ids, *args, **kwargs) |