Remove ability to delete comments in polls for readonly users
This commit is contained in:
parent
85edc028ff
commit
a40315aff7
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user