add user join hub

This commit is contained in:
2026-04-27 20:16:36 +02:00
parent 67203c5971
commit 6f7a913e64
4 changed files with 101 additions and 37 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func getHubChannelIfValidWithResponseOnFail(ctx context.Context, response http.R
return nil, errors.New("invalid channelid")
}
if !haveUserPermissionsOnChannel(types.CachedUserCanView, hubUser, channel) {
if !haveHubUserPermissionsOnChannel(types.CachedUserCanView, hubUser, channel) {
return nil, errors.New("invalid channelid")
}