Skip to content

Commit 02f2445

Browse files
author
Jon Staab
committed
Fix nip29 group access
1 parent 772c08c commit 02f2445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zooid/instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func (instance *Instance) QueryStored(ctx context.Context, filter nostr.Filter)
345345
continue
346346
}
347347

348-
if !instance.Groups.IsMember(h, pubkey) {
348+
if !instance.Groups.HasAccess(h, pubkey) {
349349
continue
350350
}
351351
}
@@ -442,7 +442,7 @@ func (instance *Instance) OnEvent(ctx context.Context, event nostr.Event) (rejec
442442
return true, "invalid: no such group exists"
443443
}
444444

445-
if HasTag(meta.Tags, "closed") && !instance.Groups.IsMember(h, pubkey) {
445+
if !instance.Groups.HasAccess(h, pubkey) {
446446
return true, "restricted: you are not a member of that group"
447447
}
448448
}

0 commit comments

Comments
 (0)