Remove ability to delete comments in polls for readonly users

This commit is contained in:
yflory 2018-01-12 17:15:11 +01:00
parent 85edc028ff
commit a40315aff7

View File

@ -751,7 +751,7 @@ define([
}).appendTo($msg);
// Actions
if (!c.profile || c.profile === profile) {
if (!APP.readOnly && (!c.profile || c.profile === profile)) {
$('<button>', {
'class': 'btn btn-secondary fa fa-times',
'title': Messages.poll_comment_remove,