Skip to content

Node.js based forum software built for the modern web

fix: don't show topic search if no search privilege

Barış Soner Uşaklı8adbf54ae635
diff --git a/public/src/app.js b/public/src/app.js
index 7e61d467be..1d47e7bd01 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -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 */