misc: fix check for view method on evolution part (#54453)

This commit is contained in:
Frédéric Péters 2021-06-01 00:19:20 +02:00
parent fdefa688cc
commit 90f7469ccc
1 changed files with 1 additions and 1 deletions

View File

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