mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Update web_access_rule_buttons/models/models.py
Co-Authored-By: espo-tony <espo-tony@users.noreply.github.com>
This commit is contained in:
@@ -18,7 +18,7 @@ class Base(models.AbstractModel):
|
||||
:param operation: a list of ``read``, ``create``, ``write``, ``unlink``
|
||||
:return: {operation: access} (access is a boolean)
|
||||
"""
|
||||
if operations or None:
|
||||
if not operations or not any(operations):
|
||||
operations = ['read', 'create', 'write', 'unlink']
|
||||
result = {}
|
||||
for operation in operations:
|
||||
|
||||
Reference in New Issue
Block a user