Fix image header URL in advert details, update CV access message, enhance image ratio alerts in profile edit, modify registration titles and agreement checkbox behavior.

This commit is contained in:
2025-06-11 00:25:57 +02:00
parent c2a11763fc
commit 603c10f251
11 changed files with 45 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ class GlobelusUser
public static function delete_account()
{
global $lang;
global $lang, $g_user;
if ( !\front\factory\Globelus::permissions_check( $g_user = \S::get_session( 'g_user' ), __CLASS__ . "\\" . __FUNCTION__ ) )
return false;
@@ -27,7 +27,11 @@ class GlobelusUser
if ( \front\factory\GlobelusUser::delete_account( $g_user['id'] ) )
\S::set_alert_prompt( 'Informacja', $lang[ 'usuwanie-konta-email' ] );
header( 'Location: /panel-kandydata/profil' );
if ( $g_user['type'] )
header( 'Location: /panel-pracodawcy/profil' );
else
header( 'Location: /panel-kandydata/profil' );
exit;
}