Exemplo n.º 1
0
 protected function _preDispatch($action)
 {
     parent::_preDispatch($action);
     if (!SimplePortal_Static::hasPermission('useCreateNew')) {
         return $this->responseNoPermission();
     }
 }
Exemplo n.º 2
0
 public function canPromote(array $item = array(), array $viewingUser = null)
 {
     $perm = SimplePortal_Static::hasPermission('promoteThreadToPortal');
     return $perm;
 }