Browse Source

Update res_users.py

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

10
muk_security/models/res_users.py

@ -49,10 +49,12 @@ class AccessUser(models.Model):
# Functions
#----------------------------------------------------------
def browse(self, arg=None, *args, **kwargs):
if isinstance(arg, helper.NoSecurityUid):
arg = super(helper.NoSecurityUid, arg).__int__()
return super(AccessUser, self).browse(arg=arg, *args, **kwargs)
def browse(self, *args, **kwargs):
if len(args) and isinstance(args[0], helper.NoSecurityUid):
args = list(args)
args[0] = super(helper.NoSecurityUid, args[0]).__int__()
args = tuple(args)
return super(AccessUser, self).browse(*args, **kwargs)
@classmethod

Loading…
Cancel
Save