fix
This commit is contained in:
parent
c74d160053
commit
1b53cda201
|
|
@ -23,6 +23,10 @@ class ir_model_access(models.Model):
|
|||
# User root have all accesses
|
||||
return True
|
||||
|
||||
# Handle auth='none' API endpoints with sudo() - Fix for mobile API access
|
||||
if not self._uid:
|
||||
return True
|
||||
|
||||
assert isinstance(model, str), 'Not a model name: %s' % (model,)
|
||||
assert mode in ('read', 'write', 'create', 'unlink'), 'Invalid access mode'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue