fix: #10795, early return for selection tooltip based on calling user privilege

isekai-main
Julian Lam 3 years ago
parent 5176fb1544
commit 847d2b9141

@ -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);

Loading…
Cancel
Save