Commit 1daceac8 authored by dj3c1t's avatar dj3c1t

check sourceAuthor.isValid in views

parent fe2b3bc2
......@@ -54,9 +54,12 @@
{% for sourceAuthor in source.authors %}
{%
if (
sourceAuthor.authorRole is null
or sourceAuthor.authorRole.name == 'admin'
or sourceAuthor.authorRole.name == 'editor'
sourceAuthor.isValid
and (
sourceAuthor.authorRole is null
or sourceAuthor.authorRole.name == 'admin'
or sourceAuthor.authorRole.name == 'editor'
)
)
%}
{% set author = sourceAuthor.author %}
......
......@@ -10,9 +10,12 @@
{% for sourceAuthor in source.authors %}
{%
if (
sourceAuthor.authorRole is null
or sourceAuthor.authorRole.name == 'admin'
or sourceAuthor.authorRole.name == 'editor'
sourceAuthor.isValid
and (
sourceAuthor.authorRole is null
or sourceAuthor.authorRole.name == 'admin'
or sourceAuthor.authorRole.name == 'editor'
)
)
%}
{% set author = sourceAuthor.author %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment