mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
add parameter to html_link() for turning access check off
This commit is contained in:
parent
ae1bbffc64
commit
ea4d3d782c
|
@ -223,9 +223,10 @@ class SeedDMS_View_Common {
|
||||||
* @param boolean $hsc set to false if htmlspecialchars() shall not be called
|
* @param boolean $hsc set to false if htmlspecialchars() shall not be called
|
||||||
* @return string link
|
* @return string link
|
||||||
*/
|
*/
|
||||||
protected function html_link($view='', $urlparams=array(), $linkparams=array(), $link, $hsc=true) { /* {{{ */
|
protected function html_link($view='', $urlparams=array(), $linkparams=array(), $link, $hsc=true, $nocheck=false) { /* {{{ */
|
||||||
if(!$this->check_access($view))
|
if(!$nocheck)
|
||||||
return '';
|
if(!$this->check_access($view))
|
||||||
|
return '';
|
||||||
$url = $this->html_url($view, $urlparams);
|
$url = $this->html_url($view, $urlparams);
|
||||||
$tag = "<a href=\"".$url."\"";
|
$tag = "<a href=\"".$url."\"";
|
||||||
if($linkparams)
|
if($linkparams)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user