This commit is contained in:
barisusakli
2015-06-17 14:57:10 -04:00
parent ed173e0a32
commit 0ef2ccc130
6 changed files with 21 additions and 7 deletions

View File

@@ -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;