nip29: move some things back from nip29/relay to nip29

This commit is contained in:
fiatjaf
2024-01-04 11:48:53 -03:00
parent 3fecd03ed4
commit ed3642f112
2 changed files with 21 additions and 35 deletions

View File

@@ -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: {},
}
)