mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
Readonly fixes (#9407)
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user