public function render() { foreach ($this->_actions as $key => $cfg) { if (!ACL::is_route_allowed($cfg['route'])) { unset($this->_actions[$key]); } } return Ext::actions($this->_actions); }