mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #10795, early return for selection tooltip based on calling user privilege
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user