sdasd
All checks were successful
Deploy / deploy (push) Successful in 54s

This commit is contained in:
2026-08-17 00:34:41 +02:00
parent 0d384cee2d
commit 0f57f90568
9 changed files with 142 additions and 5 deletions

View File

@@ -938,9 +938,23 @@ final class AccountPages
$communityLevelRightDefinitions = Community::membershipRightDefinitions();
$communityRoles = $communityAccess ? $communityAccess->getUserRoles($userId) : [];
$systemRoleAssignments = $communityAccess && $canManageProfileLevels ? $communityAccess->listRoleAssignments() : [];
$recentHighLevelUsers = [];
$recentHighLevelThresholdLabel = '';
$profileLevelUserSearchQuery = '';
$profileLevelUserSearchResults = [];
if ($communityAccess && $community && $canManageProfileLevels) {
$highLevelThreshold = null;
foreach ($communityLevelDefinitions as $levelDefinition) {
if ((string)($levelDefinition['label'] ?? '') === 'Säule der Väter-Community') {
$highLevelThreshold = (float)($levelDefinition['min'] ?? 0.0);
$recentHighLevelThresholdLabel = (string)($levelDefinition['label'] ?? '');
break;
}
}
if ($highLevelThreshold !== null && $highLevelThreshold > 0) {
$recentHighLevelUsers = $community->listRecentlyReachedLevelUsers($highLevelThreshold, 30, 12);
}
$profileLevelUserSearchQuery = trim((string)($_GET['profile_level_user_query'] ?? ''));
if ($profileLevelUserSearchQuery !== '') {
foreach ($communityAccess->searchUsers($profileLevelUserSearchQuery, 12) as $searchRow) {
@@ -1031,6 +1045,8 @@ final class AccountPages
'communityLevelRightDefinitions',
'communityRoles',
'systemRoleAssignments',
'recentHighLevelUsers',
'recentHighLevelThresholdLabel',
'profileLevelUserSearchQuery',
'profileLevelUserSearchResults',
'communityApplication',