QM: Wiedervorlage und Lesebestätigung, Platzhalter für Profilbilder (0.21.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 07:36:47 +00:00
parent 8701b6d1b8
commit 4d855c8a74
213 changed files with 1729 additions and 515 deletions

View file

@ -28,11 +28,19 @@ class QmAccess
return true;
}
$excluded = array_map('intval', (array) $this->settings->get(self::EXCLUDED_ROLES, []));
$excluded = $this->excludedRoles();
return $excluded === [] || ! $user->roles()->whereIn('roles.id', $excluded)->exists();
}
/**
* @return list<int>
*/
public function excludedRoles(): array
{
return array_values(array_map('intval', (array) $this->settings->get(self::EXCLUDED_ROLES, [])));
}
public function canManage(?User $user): bool
{
return (bool) $user?->can('qm.manage');