Browse Source

Update web_access_rule_buttons/models/models.py

Co-Authored-By: espo-tony <espo-tony@users.noreply.github.com>
pull/1243/head^2
QS5ELkMu 5 years ago
committed by GitHub
parent
commit
06e036c7ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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 operations or None:
if not operations or not any(operations):
operations = ['read', 'create', 'write', 'unlink']
result = {}
for operation in operations:

Loading…
Cancel
Save