Browse Source

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
pull/1243/head
antonio 5 years ago
parent
commit
9fef9082e8
  1. 2
      web_access_rule_buttons/models/models.py

2
web_access_rule_buttons/models/models.py

@ -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:

Loading…
Cancel
Save