fix code escape error in ModuleRequest
This commit is contained in:
parent
df976d1315
commit
7880651c5d
|
@ -126,7 +126,6 @@
|
||||||
/* [2] On verifie que la methode est amorcable
|
/* [2] On verifie que la methode est amorcable
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
if( !is_callable($this->getFunctionCaller()) ){
|
if( !is_callable($this->getFunctionCaller()) ){
|
||||||
var_dump($this->getFunctionCaller());
|
|
||||||
$this->error = Error::UncallableMethod;
|
$this->error = Error::UncallableMethod;
|
||||||
return new ModuleResponse($this->error);
|
return new ModuleResponse($this->error);
|
||||||
}
|
}
|
||||||
|
@ -379,8 +378,10 @@
|
||||||
$granted = Authentification::permission($this->path['module'], $method['permissions']);
|
$granted = Authentification::permission($this->path['module'], $method['permissions']);
|
||||||
|
|
||||||
/* (1) On retourne FAUX si aucun droit n'a ete trouve */
|
/* (1) On retourne FAUX si aucun droit n'a ete trouve */
|
||||||
if( $granted !== Error::Success )
|
if( $granted !== Error::Success ){
|
||||||
$this->error = Error::PermissionError;
|
$this->error = $granted;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* [3] On retourne VRAI si la permission est ok
|
/* [3] On retourne VRAI si la permission est ok
|
||||||
|
|
Loading…
Reference in New Issue