Skip to content
Code-Schnipsel Gruppen Projekte
Commit 3444a5fc erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: update user validation in events

Update the user validation method in both `onUserSaveBegin` and `onUserSaveEnd` events. The
previous validation was using `QUI::getUsers()->isUser($User)`, which was replaced with a check for
`$User` instance of `QUI\\Users\\User` for improved reliability.
Übergeordneter 4e8732ae
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!62Update 'next-3.x' with latest changes from 'main',!61fix: update user validation in events
Pipeline-Nr. 16485 bestanden
......@@ -198,7 +198,7 @@ protected static function readAttributesFromUserXML(string $file): array
public static function onUserSaveBegin(QUI\Interfaces\Users\User $User): void
{
if (!QUI::getUsers()->isUser($User)) {
if (!($User instanceof QUI\Users\User)) {
return;
}
......@@ -238,7 +238,7 @@ public static function onUserSaveBegin(QUI\Interfaces\Users\User $User): void
*/
public static function onUserSaveEnd(QUI\Interfaces\Users\User $User): void
{
if (!QUI::getUsers()->isUser($User)) {
if (!($User instanceof QUI\Users\User)) {
return;
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren