mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
adminsettings: early return, no functional changes.
This commit is contained in:
parent
b60c0b122c
commit
d19436d044
1 changed files with 7 additions and 9 deletions
|
@ -28,8 +28,7 @@ exports.socketio = function (hook_name, args, cb) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.log(err);
|
return console.log(err);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
//if showSettingsInAdminPage is set to false, then return NOT_ALLOWED in the result
|
//if showSettingsInAdminPage is set to false, then return NOT_ALLOWED in the result
|
||||||
if(settings.showSettingsInAdminPage === false) {
|
if(settings.showSettingsInAdminPage === false) {
|
||||||
socket.emit("settings", {results:'NOT_ALLOWED'});
|
socket.emit("settings", {results:'NOT_ALLOWED'});
|
||||||
|
@ -37,7 +36,6 @@ exports.socketio = function (hook_name, args, cb) {
|
||||||
else {
|
else {
|
||||||
socket.emit("settings", {results: data});
|
socket.emit("settings", {results: data});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue