mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
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:
parent
b0976a292f
commit
dc8ff69553
5 changed files with 66 additions and 29 deletions
|
@ -280,11 +280,11 @@ Example returns:
|
|||
exports.setPublicStatus = function(padID, publicStatus, callback)
|
||||
{
|
||||
//ensure this is a group pad
|
||||
if(padID.indexOf("$") == -1)
|
||||
/*if(padID.indexOf("$") == -1)
|
||||
{
|
||||
callback({stop: "You can only get/set the publicStatus of pads that belong to a group"});
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
//get the pad
|
||||
getPadSafe(padID, true, function(err, pad)
|
||||
|
@ -349,8 +349,8 @@ exports.setPassword = function(padID, password, callback)
|
|||
//ensure this is a group pad
|
||||
if(padID.indexOf("$") == -1)
|
||||
{
|
||||
callback({stop: "You can only get/set the password of pads that belong to a group"});
|
||||
return;
|
||||
//callback({stop: "You can only get/set the password of pads that belong to a group"});
|
||||
//return;
|
||||
}
|
||||
|
||||
//get the pad
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue