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