Dodaj obsługę zablokowanych kont użytkowników w widokach oraz aktualizuj zapytania SQL w klasach związanych z ogłoszeniami i firmami.

This commit is contained in:
2025-10-17 00:19:53 +02:00
parent 8d8d3b6174
commit dbe75c8e1b
6 changed files with 64 additions and 19 deletions

View File

@@ -97,6 +97,14 @@ class GlobelusAdverts
$page['language']['canonical'] = $base . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if ( $advert_details['blocked'] )
{
return \Tpl::view( 'globelus/adverts/advert-not-found', [
'g_user' => $g_user,
'advert_id' => \S::get( 'advert_id' )
] );
}
if ( !$advert_details['id'] )
{
return \Tpl::view( 'globelus/adverts/advert-not-found', [