mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-18 03:22:22 +02:00
nip29: move some things back from nip29/relay to nip29
This commit is contained in:
@@ -44,3 +44,18 @@ func (kr KindRange) Includes(kind int) bool {
|
||||
_, ok := slices.BinarySearch(kr, kind)
|
||||
return ok
|
||||
}
|
||||
|
||||
var (
|
||||
// used for normal members without admin powers
|
||||
EmptyRole *Role = nil
|
||||
|
||||
PermissionsMap = map[Permission]struct{}{
|
||||
PermAddUser: {},
|
||||
PermEditMetadata: {},
|
||||
PermDeleteEvent: {},
|
||||
PermRemoveUser: {},
|
||||
PermAddPermission: {},
|
||||
PermRemovePermission: {},
|
||||
PermEditGroupStatus: {},
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user