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

@@ -69,7 +69,7 @@ SocketUser.search = function(socket, data, callback) {
if (!data) {
return callback(new Error('[[error:invalid-data]]'));
}
if (!socket.uid) {
if (!socket.uid && parseInt(meta.config.allowGuestUserSearching, 10) !== 1) {
return callback(new Error('[[error:not-logged-in]]'));
}
user.search({