mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-12 10:22:22 +02:00
closes #3240
This commit is contained in:
@@ -42,6 +42,7 @@ apiController.getConfig = function(req, res, next) {
|
||||
config.maximumAboutMeLength = meta.config.maximumAboutMeLength || 1000;
|
||||
config.useOutgoingLinksPage = parseInt(meta.config.useOutgoingLinksPage, 10) === 1;
|
||||
config.allowGuestSearching = parseInt(meta.config.allowGuestSearching, 10) === 1;
|
||||
config.allowGuestUserSearching = parseInt(meta.config.allowGuestUserSearching, 10) === 1;
|
||||
config.allowGuestHandles = parseInt(meta.config.allowGuestHandles, 10) === 1;
|
||||
config.allowFileUploads = parseInt(meta.config.allowFileUploads, 10) === 1;
|
||||
config.allowProfileImageUploads = parseInt(meta.config.allowProfileImageUploads) === 1;
|
||||
|
||||
@@ -97,7 +97,7 @@ usersController.getUsersAndCount = function(set, uid, start, stop, callback) {
|
||||
};
|
||||
|
||||
usersController.getUsersForSearch = function(req, res, next) {
|
||||
if (!req.uid) {
|
||||
if (!req.uid && parseInt(meta.config.allowGuestUserSearching, 10) !== 1) {
|
||||
return helpers.notAllowed(req, res);
|
||||
}
|
||||
var resultsPerPage = parseInt(meta.config.userSearchResultsPerPage, 10) || 20;
|
||||
|
||||
Reference in New Issue
Block a user