Readonly fixes (#9407)

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
Anton Alexeyev
2025-06-30 16:23:34 +07:00
committed by GitHub
parent 8d12b2c133
commit 5eccbe6464
34 changed files with 127 additions and 70 deletions
@@ -14,14 +14,15 @@
//
import activity from '@hcengineering/activity'
import core, {
SortingOrder,
getCurrentAccount,
toIdMap,
type Account,
AccountRole,
type Client,
type Doc,
getCurrentAccount,
type IdMap,
type Ref,
SortingOrder,
toIdMap,
type TxOperations,
type WithLookup
} from '@hcengineering/core'
@@ -152,7 +153,7 @@ export class InboxNotificationsClientImpl implements InboxNotificationsClient {
async readDoc (_id: Ref<Doc>): Promise<void> {
const docNotifyContext = this._contextByDoc.get(_id)
if (docNotifyContext === undefined) {
if (docNotifyContext === undefined || getCurrentAccount().role === AccountRole.ReadOnlyGuest) {
return
}