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
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
web_access_rule_buttons/models/models.py
|
@ -18,7 +18,7 @@ class Base(models.AbstractModel): |
|
|
:param operation: a list of ``read``, ``create``, ``write``, ``unlink`` |
|
|
:param operation: a list of ``read``, ``create``, ``write``, ``unlink`` |
|
|
:return: {operation: access} (access is a boolean) |
|
|
:return: {operation: access} (access is a boolean) |
|
|
""" |
|
|
""" |
|
|
if operations or None: |
|
|
|
|
|
|
|
|
if not operations or not any(operations): |
|
|
operations = ['read', 'create', 'write', 'unlink'] |
|
|
operations = ['read', 'create', 'write', 'unlink'] |
|
|
result = {} |
|
|
result = {} |
|
|
for operation in operations: |
|
|
for operation in operations: |
|
|