瀏覽代碼

Fix: Admin announcement can be viewed without signing in.
Thanks to nztqa ! Closes #1281

Lauri Ojansivu 7 年之前
父節點
當前提交
c84187bdad
共有 2 個文件被更改,包括 15 次插入6 次删除
  1. 8 0
      CHANGELOG.md
  2. 7 6
      client/components/main/header.jade

+ 8 - 0
CHANGELOG.md

@@ -1,3 +1,11 @@
+# Upcoming Wekan release
+
+This release fixes the following bugs:
+
+* [Admin announcement can be viewed without signing in](https://github.com/wekan/wekan/issues/1281).
+
+Thanks to Github user nztqa for contributions.
+
 # v0.47 2017-10-04 Wekan release
 
 This release adds the following new features:

+ 7 - 6
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