add parameter to html_link() for turning access check off

This commit is contained in:
Uwe Steinmann 2016-04-20 18:08:24 +02:00
parent ae1bbffc64
commit ea4d3d782c

View File

@ -223,9 +223,10 @@ class SeedDMS_View_Common {
* @param boolean $hsc set to false if htmlspecialchars() shall not be called
* @return string link
*/
protected function html_link($view='', $urlparams=array(), $linkparams=array(), $link, $hsc=true) { /* {{{ */
if(!$this->check_access($view))
return '';
protected function html_link($view='', $urlparams=array(), $linkparams=array(), $link, $hsc=true, $nocheck=false) { /* {{{ */
if(!$nocheck)
if(!$this->check_access($view))
return '';
$url = $this->html_url($view, $urlparams);
$tag = "<a href=\"".$url."\"";
if($linkparams)