This commit is contained in:
2024-12-26 14:04:35 +03:00
parent b5b7befd34
commit 28c8e24847
7 changed files with 70 additions and 15 deletions

View File

@ -82,6 +82,16 @@ class UserService
return '';
}
public static function getAuthUserId(): string
{
$user = self::getAuthUser();
if ($user){
return $user->id;
}
return '';
}
public static function getAuthUserPhoto(): string|null
{
$user = self::getAuthUser();