/** * Restore default access level for Post or Term * * @return string * * @access protected */ protected function clearAccess() { $model = new aam_View_Post(); return $model->clearAccess(); }
/** * Restore default access level for Post or Term * * @return string * * @access public */ public function clearAccess() { if (aam_View_Collection::hasFeature(self::FEATURE_POST_ACCESS)) { $post = new aam_View_Post(); $response = $post->clearAccess(); } else { $response = self::DEFAULT_AJAX_RESPONSE; } return $response; }