mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-16 03:04:53 -04:00
Read only access works
This commit is contained in:
parent
1c1e035bf1
commit
93ccbaef3a
3 changed files with 82 additions and 10 deletions
|
@ -60,6 +60,15 @@ exports.getReadOnlyId = function (padId, callback)
|
|||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a the padId for a read only id
|
||||
* @param {String} readOnlyId read only id
|
||||
*/
|
||||
exports.getPadId = function(readOnlyId, callback)
|
||||
{
|
||||
db.get("readonly2pad:" + readOnlyId, callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a random String with the given length. Is needed to generate the read only ids
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue