mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
stability restored now to handle the auth issues
This commit is contained in:
parent
d10013c159
commit
ff603d7b58
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
exports.socketio = function (hook_name, args, cb) {
|
exports.socketio = function (hook_name, args, cb) {
|
||||||
var io = args.io.of("/settings");
|
var io = args.io.of("/settings");
|
||||||
io.on('connection', function (socket) {
|
io.on('connection', function (socket) {
|
||||||
if (!socket.handshake.session.user || !socket.handshake.session.user.is_admin) return;
|
console.warn ("THIS IS BROKEN");
|
||||||
|
|
||||||
|
if (!socket.handshake.session || !socket.handshake.session.user || !socket.handshake.session.user.is_admin) return;
|
||||||
|
|
||||||
socket.on("load", function (query) {
|
socket.on("load", function (query) {
|
||||||
fs.readFile('settings.json', 'utf8', function (err,data) {
|
fs.readFile('settings.json', 'utf8', function (err,data) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue