X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=ab91cc5e9ed81964f6a84f439e471da061144efa;hb=5aed580a3a092b460ecfa5ea398c822b9aa904da;hp=d5678bd4567e8b2f2ff8bfd4a3d815baa7196b5b;hpb=245923e335d0da5bec9495991a7846be9f0563ab;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index d5678bd..ab91cc5 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -1,6 +1,6 @@ requireAdmin && !S::admin()) { + $this->trigError('Vous n\'avez pas les permissions nécessaires pour valider cette demande.'); + return false; + } + if (Env::has('delete')) { $this->clean(); $this->trigSuccess('Requête supprimée.'); @@ -598,7 +606,8 @@ abstract class ProfileValidate extends Validate { $res = XDB::iterRow('SELECT data FROM requests - WHERE pid = {?} and type = {?}', + WHERE pid = {?} and type = {?} + ORDER BY stamp', $pid, $type); $array = array(); while (list($data) = $res->next()) {