mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Issue #2960 - deactivate settings.json
Deactivate settings.json in Admin dashboard
This commit is contained in:
parent
c5638dd7e5
commit
a8d5dc0693
6 changed files with 35 additions and 2 deletions
|
@ -30,7 +30,13 @@ exports.socketio = function (hook_name, args, cb) {
|
|||
}
|
||||
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});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -209,6 +209,11 @@ exports.requireAuthentication = false;
|
|||
exports.requireAuthorization = false;
|
||||
exports.users = {};
|
||||
|
||||
/*
|
||||
* Show settings in admin page, by default it is true
|
||||
*/
|
||||
exports.showSettingsInAdminPage = true;
|
||||
|
||||
//checks if abiword is avaiable
|
||||
exports.abiwordAvailable = function()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue