mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: don't show topic search if no search privilege
This commit is contained in:
@@ -444,7 +444,7 @@ app.cacheBuster = null;
|
||||
}
|
||||
|
||||
app.enableTopicSearch = function (options) {
|
||||
if (!config.searchEnabled) {
|
||||
if (!config.searchEnabled || !app.user.privileges['search:content']) {
|
||||
return;
|
||||
}
|
||||
/* eslint-disable-next-line */
|
||||
|
||||
Reference in New Issue
Block a user