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

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 3cd0c9a476
commit 8adbf54ae6

@ -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 */

Loading…
Cancel
Save