Fix nil user in education template
This commit is contained in:
parent
d2b34cb87d
commit
19d79a2a77
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<h2>Guides</h2>
|
<h2>Guides</h2>
|
||||||
|
|
||||||
{{ if .User.IsEduAuthor }}
|
{{ if and .User .User.IsEduAuthor }}
|
||||||
<div class="mb2">
|
<div class="mb2">
|
||||||
<a href="{{ .NewArticleUrl }}"><span class="big pr1">+</span> New Article</a>
|
<a href="{{ .NewArticleUrl }}"><span class="big pr1">+</span> New Article</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue