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

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

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;