Exemplo n.º 1
0
 /**
  * Verify the permissions
  * 
  * @access protected
  */
 public function can($what)
 {
     $View = $this->__getView();
     $userData = $View->getVar('userData');
     return BigBadGuy::can($what, $userData['permissions']);
 }
Exemplo n.º 2
0
 /**
  * Verify the permissions
  * 
  * @access public
  */
 public function can($what)
 {
     $this->compilePermissions();
     return BigBadGuy::can($what, $this->user('permissions'));
 }