diff options
author | nztqa <nztqa@users.noreply.github.com> | 2017-10-04 17:06:52 +0900 |
---|---|---|
committer | nztqa <nztqa@users.noreply.github.com> | 2017-10-04 17:06:52 +0900 |
commit | de4ae2dc747eead201da9ea40795d18527f485a8 (patch) | |
tree | 3c2f59a273c4961280b022666e7f9cc26cee7b19 | |
parent | bab02bf8fa477418eb1e861896d4a1600f027011 (diff) | |
download | wekan-de4ae2dc747eead201da9ea40795d18527f485a8.tar.gz wekan-de4ae2dc747eead201da9ea40795d18527f485a8.tar.bz2 wekan-de4ae2dc747eead201da9ea40795d18527f485a8.zip |
Add check to see if permission is available (with isBoardMember)
-rw-r--r-- | client/components/cards/cardDetails.jade | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade index caea222f..ce93d6fd 100644 --- a/client/components/cards/cardDetails.jade +++ b/client/components/cards/cardDetails.jade @@ -87,13 +87,14 @@ template(name="cardDetails") hr .activity-title h2 {{ _ 'activity'}} - .material-toggle-switch - span.toggle-switch-title {{_ 'hide-system-messages'}} - if hiddenSystemMessages - input.toggle-switch(type="checkbox" id="toggleButton" checked="checked") - else - input.toggle-switch(type="checkbox" id="toggleButton") - label.toggle-label(for="toggleButton") + if currentUser.isBoardMember + .material-toggle-switch + span.toggle-switch-title {{_ 'hide-system-messages'}} + if hiddenSystemMessages + input.toggle-switch(type="checkbox" id="toggleButton" checked="checked") + else + input.toggle-switch(type="checkbox" id="toggleButton") + label.toggle-label(for="toggleButton") if currentUser.isBoardMember +commentForm if isLoaded.get |