summaryrefslogtreecommitdiffstats
path: root/client/components/main/header.jade
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-10-09 14:48:05 +0300
committerLauri Ojansivu <x@xet7.org>2017-10-09 14:48:05 +0300
commitc84187bdadb7f1afaa8211773d1d1cb986709099 (patch)
tree41d5556359a113f19ec261cf7e0cba1aac6668a0 /client/components/main/header.jade
parent23ff08382a7c7f947d36f8989eaac5b0825809eb (diff)
downloadwekan-c84187bdadb7f1afaa8211773d1d1cb986709099.tar.gz
wekan-c84187bdadb7f1afaa8211773d1d1cb986709099.tar.bz2
wekan-c84187bdadb7f1afaa8211773d1d1cb986709099.zip
Fix: Admin announcement can be viewed without signing in.
Thanks to nztqa ! Closes #1281
Diffstat (limited to 'client/components/main/header.jade')
-rw-r--r--client/components/main/header.jade13
1 files changed, 7 insertions, 6 deletions
diff --git a/client/components/main/header.jade b/client/components/main/header.jade
index 613dd736..51bccd09 100644
--- a/client/components/main/header.jade
+++ b/client/components/main/header.jade
@@ -49,12 +49,13 @@ template(name="header")
if appIsOffline
+offlineWarning
- if hasAnnouncement
- .announcement
- p
- i.fa.fa-bullhorn
- | #{announcement}
- i.fa.fa-times-circle.js-close-announcement
+ if currentUser.isBoardMember
+ if hasAnnouncement
+ .announcement
+ p
+ i.fa.fa-bullhorn
+ | #{announcement}
+ i.fa.fa-times-circle.js-close-announcement
template(name="offlineWarning")
.offline-warning