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:
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user