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