mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
add comment about fallback case
This commit is contained in:
@@ -101,7 +101,10 @@ module.exports = WebsocketController =
|
||||
Utils.getClientAttributes client, ["project_id", "user_id"], (error, {project_id, user_id}) ->
|
||||
logger.log {user_id, project_id, doc_id, client_id: client.id}, "client leaving doc"
|
||||
client.leave doc_id
|
||||
AuthorizationManager.removeAccessToDoc client, doc_id # may not be needed, could block updates?
|
||||
# we could remove permission when user leaves a doc, but because
|
||||
# the connection is per-project, we continue to allow access
|
||||
# after the initial joinDoc since we know they are already authorised.
|
||||
## AuthorizationManager.removeAccessToDoc client, doc_id
|
||||
callback()
|
||||
|
||||
updateClientPosition: (client, cursorData, callback = (error) ->) ->
|
||||
|
||||
Reference in New Issue
Block a user