force switch master

Expérience/Formation
thomas muzard 1 year ago
parent be693be91e
commit 3948db64dc

@ -1,6 +1,7 @@
<?php
namespace App\config;
use App\metier\Alumni;
use App\modele\ImageModele;
use App\modele\OffreModele;
@ -97,11 +98,10 @@ class Validation
public static function validerExperience(string $intitule, string $dateDeb, string $dateFin, string $nomEntreprise, bool $currendJob)
{
if(!empty($intitule) && !empty($dateDeb) && !empty($nomEntreprise), && !empty($currendJob))
if(!empty($intitule) && !empty($dateDeb) && !empty($nomEntreprise) && !empty($currendJob))
{
return true;
}
return false;
}
public static function validateNumber($number) : bool
@ -152,4 +152,14 @@ class Validation
}
public function isAdmin() : ?Alumni
{
if(isset($_SESSION['login']) && isset($_SESSION['role']))
{
$login = self::nettoyerString($_SESSION['login']);
$role = self::nettoyerString($_SESSION['role']);
return $_SESSION["utilisateur"];
}
return null;
}
}

Loading…
Cancel
Save