Skip to content
Snippets Groups Projects
Commit 1e383bc9 authored by echicken's avatar echicken :chicken:
Browse files

Check rest V before showing add-poll button.

parent d272fe1e
No related branches found
No related tags found
No related merge requests found
...@@ -499,7 +499,7 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -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) { 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])); 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])); writeln(format(strings.thread_list.controls.post_poll, http_request.query.sub[0]));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment