summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 17:02:43 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 17:02:43 +0200
commit80e06b8ffc7b9440b9e46ba43200a91c1b617cb0 (patch)
treea2b9eb942217b69455f1637d99cb60bfe5bf9898 /client
parent93e69c94a2c75f4526c98f30ff43c113f37da754 (diff)
downloadwekan-80e06b8ffc7b9440b9e46ba43200a91c1b617cb0.tar.gz
wekan-80e06b8ffc7b9440b9e46ba43200a91c1b617cb0.tar.bz2
wekan-80e06b8ffc7b9440b9e46ba43200a91c1b617cb0.zip
Rules hidden from non admin
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardHeader.jade8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade
index dfd281de..75b2f02b 100644
--- a/client/components/boards/boardHeader.jade
+++ b/client/components/boards/boardHeader.jade
@@ -87,10 +87,10 @@ template(name="boardHeaderBar")
if Filter.isActive
a.board-header-btn-close.js-filter-reset(title="{{_ 'filter-clear'}}")
i.fa.fa-times-thin
-
- a.board-header-btn.js-open-rules-view(title="{{_ 'rules'}}")
- i.fa.fa-magic
- span {{_ 'rules'}}
+ if currentUser.isAdmin
+ a.board-header-btn.js-open-rules-view(title="{{_ 'rules'}}")
+ i.fa.fa-magic
+ span {{_ 'rules'}}
a.board-header-btn.js-open-search-view(title="{{_ 'search'}}")
i.fa.fa-search