use any here
This commit is contained in:
parent
e7b14ed69f
commit
2e876022a5
@ -608,23 +608,13 @@ def run_workflows(
|
|||||||
else:
|
else:
|
||||||
overrides.title = action.assign_title
|
overrides.title = action.assign_title
|
||||||
|
|
||||||
if (
|
if any(
|
||||||
(
|
[
|
||||||
action.assign_view_users is not None
|
action.assign_view_users.exists(),
|
||||||
and action.assign_view_users.count() > 0
|
action.assign_view_groups.exists(),
|
||||||
)
|
action.assign_change_users.exists(),
|
||||||
or (
|
action.assign_change_groups.exists(),
|
||||||
action.assign_view_groups is not None
|
],
|
||||||
and action.assign_view_groups.count() > 0
|
|
||||||
)
|
|
||||||
or (
|
|
||||||
action.assign_change_users is not None
|
|
||||||
and action.assign_change_users.count() > 0
|
|
||||||
)
|
|
||||||
or (
|
|
||||||
action.assign_change_groups is not None
|
|
||||||
and action.assign_change_groups.count() > 0
|
|
||||||
)
|
|
||||||
):
|
):
|
||||||
permissions = {
|
permissions = {
|
||||||
"view": {
|
"view": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user