fix(backend): readonly is readonly

This commit is contained in:
Florent Chehab 2020-05-12 22:00:44 +02:00
parent 2c2c104bbf
commit 99e5bb0d98
No known key found for this signature in database
GPG Key ID: 9A0CE018889EA246
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ class ReadOnlyBackendService {
*/
getReadOnlyId(whiteboardId) {
// make sure it's inited
this.init(whiteboardId);
if (this.isReadOnly(whiteboardId)) return whiteboardId;
// run in isReadOnly
// this.init(whiteboardId);
return this.#idToReadOnlyId.get(whiteboardId);
}