adminsettings: early return, no functional changes.

pull/3478/head
muxator 2018-08-29 01:34:45 +02:00
parent b60c0b122c
commit d19436d044
1 changed files with 7 additions and 9 deletions

View File

@ -28,15 +28,13 @@ exports.socketio = function (hook_name, args, cb) {
if (err) {
return console.log(err);
}
else
{
//if showSettingsInAdminPage is set to false, then return NOT_ALLOWED in the result
if(settings.showSettingsInAdminPage === false) {
socket.emit("settings", {results:'NOT_ALLOWED'});
}
else {
socket.emit("settings", {results: data});
}
//if showSettingsInAdminPage is set to false, then return NOT_ALLOWED in the result
if(settings.showSettingsInAdminPage === false) {
socket.emit("settings", {results:'NOT_ALLOWED'});
}
else {
socket.emit("settings", {results: data});
}
});
});