Merge pull request #1664 from sharelatex/as-fix-read-only-comment

Only show add comment button if user has permission

GitOrigin-RevId: e2de9ec435eff45d575a368f07ff40416ed43f1f
This commit is contained in:
Chrystal Maria Griffiths 2019-04-10 10:38:04 +01:00 committed by sharelatex
parent ab6565beb8
commit 5d6a307234

View file

@ -24,7 +24,7 @@
| ({{ reviewPanel.nVisibleSelectedChanges }})
a.rp-add-comment-btn(
href
ng-if="reviewPanel.entries[editor.open_doc_id]['add-comment'] != null"
ng-if="reviewPanel.entries[editor.open_doc_id]['add-comment'] != null && permissions.comment"
ng-click="addNewComment();"
)
i.fa.fa-comment