From a40315aff7b4376d811e93ee70058b90f7670ebd Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 12 Jan 2018 17:15:11 +0100 Subject: [PATCH] Remove ability to delete comments in polls for readonly users --- www/poll/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/poll/inner.js b/www/poll/inner.js index ccddcef19..dd585ec31 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -751,7 +751,7 @@ define([ }).appendTo($msg); // Actions - if (!c.profile || c.profile === profile) { + if (!APP.readOnly && (!c.profile || c.profile === profile)) { $('