diff --git a/api-system/internal/service/cqhttp_service.go b/api-system/internal/service/cqhttp_service.go index b382611..653676d 100644 --- a/api-system/internal/service/cqhttp_service.go +++ b/api-system/internal/service/cqhttp_service.go @@ -219,7 +219,7 @@ func handleAddGroup(event *cqhttp.CommonEvent) { userId := event.UserId groupConfig := MustFindGroupConfig(groupId) userConfig := MustFindUserConfig(userId) - if (groupConfig == nil || !(*groupConfig.Banned)) && (userConfig == nil || !(*userConfig.Banned)) { + if (groupConfig == nil || !(*groupConfig.Banned)) && (userConfig == nil || !(*userConfig.Banned)) && (userConfig.SuperAdmin != nil && *userConfig.SuperAdmin) { cqhttp.MustAcceptInviteToGroup(event.Flag, event.SubType, true, "") } else { logging.L().Warn("application for joining the group was rejected",