mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
Merge branch 'develop' into improve_cookies
This commit is contained in:
commit
aefa617797
63 changed files with 1191 additions and 284 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});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ var exporthtml = require("../../utils/ExportHtml");
|
|||
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||
//serve read only pad
|
||||
args.app.get('/ro/:id', function(req, res)
|
||||
{
|
||||
{
|
||||
var html;
|
||||
var padId;
|
||||
|
||||
|
@ -40,7 +40,7 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
hasPadAccess(req, res, function()
|
||||
{
|
||||
//render the html document
|
||||
exporthtml.getPadHTMLDocument(padId, null, false, function(err, _html)
|
||||
exporthtml.getPadHTMLDocument(padId, null, function(err, _html)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
html = _html;
|
||||
|
|
|
@ -16,6 +16,13 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
res.send(eejs.require("ep_etherpad-lite/templates/index.html"));
|
||||
});
|
||||
|
||||
//serve javascript.html
|
||||
args.app.get('/javascript', function(req, res)
|
||||
{
|
||||
res.send(eejs.require("ep_etherpad-lite/templates/javascript.html"));
|
||||
});
|
||||
|
||||
|
||||
//serve robots.txt
|
||||
args.app.get('/robots.txt', function(req, res)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue