25 protected $tabAllowDeny=array();
27 public function __construct(){
28 if(isset($_SESSION[
'gestionuser_tabAllowDeny'])){
29 $this->tabAllowDeny=$_SESSION[
'gestionuser_tabAllowDeny'];
33 private function register(){
34 $_SESSION[
'gestionuser_tabAllowDeny']=$this->tabAllowDeny;
43 $_SESSION[
'gestionuser_tabAllowDeny']=array();
44 $this->tabAllowDeny=array();
53 public function allow($action,$ressource){
54 if(isset($this->tabAllowDeny[$ressource][$action])){
57 $this->tabAllowDeny[$ressource][$action]=1;
66 public function deny($action,$ressource){
67 if(isset($this->tabAllowDeny[$ressource][$action])){
70 $this->tabAllowDeny[$ressource][$action]=0;
79 public function can($action,$ressource){
83 if(!isset($this->tabAllowDeny[$ressource]) ){
86 if(!isset($this->tabAllowDeny[$ressource][$action]) ){
93 $tAskCan[]=array($action,$ressource,$ok);
102 _root::getLog()->info(
'ACL can "'.$action.
'" on "'.$ressource.
'" ? : '.$sOk);
allow($action, $ressource)
static getConfigVar($sCatAndVar, $uDefaut=null)
static setConfigVar($sCatAndVar, $uValue)
deny($action, $ressource)