Merge remote-tracking branch 'origin/11.0-mig-web_access_rule_buttons' into 11.0-mig-web_access_rule_buttons

# Conflicts:
#	web_access_rule_buttons/models/models.py
This commit is contained in:
antonio
2019-05-09 13:16:10 +02:00

View File

@@ -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 not operations:
if not operations or not any(operations):
operations = ['read', 'create', 'write', 'unlink']
result = {}
for operation in operations: