mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
[feat] New server-side hook: onAccessCheck
This commit is contained in:
parent
f9203524a4
commit
35702a0589
2 changed files with 21 additions and 0 deletions
|
@ -108,6 +108,18 @@ Usage examples:
|
|||
|
||||
* https://github.com/tiblu/ep_authorship_toggle
|
||||
|
||||
## onAccessCheck
|
||||
Called from: src/node/db/SecurityManager.js
|
||||
|
||||
Things in context:
|
||||
|
||||
1. padID - the pad the user wants to access
|
||||
2. password - the password the user has given to access the pad
|
||||
3. token - the token of the author
|
||||
3. sessionCookie - the session the use has
|
||||
|
||||
This hook gets called when the access to the concrete pad is being checked. Return `false` to deny access.
|
||||
|
||||
## padCreate
|
||||
Called from: src/node/db/Pad.js
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue