Before canUse

This commit is contained in:
Claire DELBOS 2017-03-02 13:56:26 +01:00
parent cdbc134d2e
commit df335ac9d0

View File

@ -93,9 +93,9 @@ class Credit extends Scores_Ws_Server
*/
public function payCredit($ligneCredit='')
{
$this->authenticate();
$this->permission($this->libdroits);
$PayCreditResult=new PayCredit();
$this->authenticate();
$ir=(array)json_decode($ligneCredit);
$tab=explode('ww',$ir['idCmd']);
$verifid=$tab[0];
@ -173,7 +173,7 @@ class Credit extends Scores_Ws_Server
* Vérifie le droit de consommer une page
* @param $idLog
* @return canUse
*/
public function canUse($idLog)
{
$canUse=new canUse();