mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Hide close button if user is forced to have the section on their homepage
This commit is contained in:
parent
9ec105b3ca
commit
a3df76902f
@ -123,6 +123,10 @@
|
||||
{
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user