mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
AuthorManager: New getAuthorId
hook
This commit is contained in:
parent
6d4085f5f0
commit
ae092edf0c
4 changed files with 82 additions and 7 deletions
|
@ -115,7 +115,7 @@ exports.checkAccess = async (padID, sessionCookie, token, userSettings) => {
|
|||
|
||||
const grant = {
|
||||
accessStatus: 'grant',
|
||||
authorID: sessionAuthorID || await authorManager.getAuthor4Token(token),
|
||||
authorID: sessionAuthorID || await authorManager.getAuthorId(token, userSettings),
|
||||
};
|
||||
|
||||
if (!padID.includes('$')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue