From 1e383bc9e7bb12f035e4bf8ab022778a7b937f1b Mon Sep 17 00:00:00 2001 From: echicken <echicken@bbs.electronicchicken.com> Date: Tue, 22 Nov 2016 18:50:13 -0500 Subject: [PATCH] Check rest V before showing add-poll button. --- web/root/pages/001-forum.ssjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/root/pages/001-forum.ssjs b/web/root/pages/001-forum.ssjs index e3cb916d71..326eb4c1d7 100644 --- a/web/root/pages/001-forum.ssjs +++ b/web/root/pages/001-forum.ssjs @@ -499,7 +499,7 @@ if (typeof http_request.query.sub !== 'undefined' && if (user.alias !== settings.guest && msg_area.sub[http_request.query.sub[0]].can_post) { writeln(format(strings.thread_list.controls.post, http_request.query.sub[0])); - if (!(msg_area.sub[http_request.query.sub[0]].settings&SUB_NOVOTING)) { + if (!(msg_area.sub[http_request.query.sub[0]].settings&SUB_NOVOTING) && !(user.security.restrictions&UFLAG_V)) { writeln(format(strings.thread_list.controls.post_poll, http_request.query.sub[0])); } } -- GitLab