mod so one can set passwords a) for pads that are in no group and b) via the web interface

This commit is contained in:
jaseg 2011-12-06 22:00:42 +01:00
parent b0976a292f
commit dc8ff69553
5 changed files with 66 additions and 29 deletions

View file

@ -35,7 +35,7 @@ var sessionManager = require("./SessionManager");
exports.checkAccess = function (padID, sessionID, token, password, callback)
{
// it's not a group pad, means we can grant access
if(padID.indexOf("$") == -1)
/*if(padID.indexOf("$") == -1)
{
//get author for this token
authorManager.getAuthor4Token(token, function(err, author)
@ -46,7 +46,7 @@ exports.checkAccess = function (padID, sessionID, token, password, callback)
//don't continue
return;
}
}*/
var groupID = padID.split("$")[0];
var padExists = false;