revork structures for hub

This commit is contained in:
2026-04-25 16:04:53 +02:00
parent 635139aad2
commit df1e969d49
9 changed files with 165 additions and 157 deletions
+5 -5
View File
@@ -62,11 +62,11 @@ func HandleHubCreate(response http.ResponseWriter, request *http.Request) {
}
hub.ChannelGroups[rootGrp.Id] = rootGrp
rootRole := &types.HubGlobalRole{
Id: 0,
Name: "root",
Color: types.Rgba{255, 0, 0, 255},
RolePermission: ^permission.Global(0),
rootRole := &types.HubRole{
Id: 0,
Name: "root",
Color: types.Rgba{255, 0, 0, 255},
Permissions: ^permission.Global(0),
}
hub.GlobalRoles[rootRole.Id] = rootRole