Hide close button if user is forced to have the section on their homepage

This commit is contained in:
Nathan Gray 2009-09-21 21:47:04 +00:00
parent 9ec105b3ca
commit a3df76902f

View File

@ -123,6 +123,10 @@
{ {
if($control != '' && $control_param != '') if($control != '' && $control_param != '')
{ {
if($control == 'close' && $GLOBALS['egw']->preferences->forced[$GLOBALS['egw']->applications->id2name($control_param['app'])]['homepage_display']) {
// User is forced to have this box on their home page, hide the close button
return;
}
$this->setvar($control,$GLOBALS['phpgw']->link($control_param['url'],'app='.$control_param['app'].'&control='.$control)); $this->setvar($control,$GLOBALS['phpgw']->link($control_param['url'],'app='.$control_param['app'].'&control='.$control));
} }
} }