Node.js based forum software built for the modern web
fix: #10795, early return for selection tooltip based on calling user privilege
Julian Lam847d2b9141cc
diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.jsindex 8b46eb3485..28b1119a3f 100644--- a/public/src/client/topic/postTools.js+++ b/public/src/client/topic/postTools.js@@ -478,6 +478,10 @@ define('forum/topic/postTools', [const selectionChangeFn = utils.debounce(selectionChange, 100);function handleSelectionTooltip() {+ if (!ajaxify.data.privileges['topics:reply']) {+ return;+ }+hooks.onPage('action:posts.loaded', delayedTooltip);$(document).off('selectionchange', selectionChangeFn).on('selectionchange', selectionChangeFn);