misc: fix check for view method on evolution part (#54453)
This commit is contained in:
parent
fdefa688cc
commit
90f7469ccc
|
@ -149,7 +149,7 @@ class Evolution:
|
|||
|
||||
l = []
|
||||
for p in self.parts:
|
||||
if not hasattr(p, 'view'):
|
||||
if not p.view:
|
||||
continue
|
||||
if hasattr(p, 'to') and not self.formdata.is_for_current_user(p.to):
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue