Example #1
0
 /**
  *
  * @param type $resource
  * @param type $ACL
  * @return type
  */
 public function testACL($resource, $ACL = null)
 {
     //
     $user = $this->getSessionUser();
     //
     return Framework::testAcl($user['role'], $resource, is_null($ACL) ? $this->ACL : $ACL);
 }
Example #2
0
 /**
  * 
  * @param type $path
  * @param type $acl
  * @return type
  */
 public function testAcl($path, $acl = null)
 {
     //
     $user = $this->getSessionUser();
     //
     return Liberty\Framework::testAcl($user['role'], $path, is_null($acl) ? $this->_acl : $acl);
 }