/**
  * Checks to see if there are any permissions in the page's args for the given action.
  * If so, it evaluates them.  If not returns true.
  * @returns boolean
  */
 protected function checkActionPermission($action)
 {
     if (!($primaryFormName = $this->getPrimaryFormName())) {
         return false;
         //weirdness.  should just stop whatever is happening
     }
     if (!($parentFormName = $this->getParentFormName())) {
         return false;
         //weirdness.  should just stop whatever is happening
     }
     if (!parent::checkActionPermission($action)) {
         return false;
     }
     $task = $parentFormName . "_can_" . $action . "_child_form_" . $primaryFormName;
     return $this->hasPermission("task({$task})");
 }
 /**
  * Checks to see if there are any permissions in the page's args for the given action.
  * If so, it evaluates them.  If not returns true.
  * @returns boolean
  */
 protected function checkActionPermission($action)
 {
     if (!$this->form_name) {
         return false;
         //weirdness.  should just stop whatever is happening
     }
     if (!parent::checkActionPermission($action)) {
         return false;
     }
     $task = "person_can_" . $action . "_child_form_" . $this->form_name;
     return $this->hasPermission("task({$task})");
 }