Grant access to all groups for admins

This commit is contained in:
Jon Staab
2025-11-10 14:32:53 -08:00
parent e0951bffd9
commit 8271671a67
+1 -1
View File
@@ -223,7 +223,7 @@ func (g *GroupStore) UpdateMembersList(h string) error {
// Other stuff
func (g *GroupStore) HasAccess(h string, pubkey nostr.PubKey) bool {
return g.IsAdmin(h, pubkey) || g.IsMember(h, pubkey)
return g.Config.CanManage(pubkey) || g.IsAdmin(h, pubkey) || g.IsMember(h, pubkey)
}
func (g *GroupStore) IsGroupEvent(event nostr.Event) bool {