mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-18 04:27:56 +01:00
closes #2818
This commit is contained in:
@@ -16,8 +16,13 @@
|
||||
if (properties) {
|
||||
if (properties.loggedIn && !data.loggedIn ||
|
||||
properties.adminOnly && !data.isAdmin ||
|
||||
properties.installed && properties.installed.search && !data.searchEnabled ||
|
||||
properties.hideIfPrivate && data.privateUserInfo) {
|
||||
properties.installed && properties.installed.search && !data.searchEnabled) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (item.route.match('/users')) {
|
||||
if (data.privateUserInfo && !data.isAdmin) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user