mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
get stylite search working again by adding implicit app rights for about
This commit is contained in:
parent
f163be62e2
commit
30158d1e8d
@ -357,7 +357,7 @@ class Egw extends Egw\Base
|
||||
{
|
||||
$this->currentapp = $GLOBALS['egw_info']['flags']['currentapp']; // some apps change it later
|
||||
|
||||
if ($GLOBALS['egw_info']['flags']['currentapp'] != 'api') // give everyone implicit api rights
|
||||
if (!in_array($GLOBALS['egw_info']['flags']['currentapp'], array('api','about'))) // give everyone implicit api rights
|
||||
{
|
||||
// This will need to use ACL in the future
|
||||
if (!$GLOBALS['egw_info']['user']['apps'][$currentapp = $GLOBALS['egw_info']['flags']['currentapp']] ||
|
||||
|
@ -795,13 +795,13 @@ abstract class Framework extends Framework\Extra
|
||||
// We handle this here because its special
|
||||
$apps['about']['title'] = 'EGroupware';
|
||||
$apps['about']['url'] = self::link('/about.php');
|
||||
$apps['about']['icon'] = $apps['about']['icon_hover'] = Image::find('phpgwapi',Array('about','nonav'));
|
||||
$apps['about']['icon'] = $apps['about']['icon_hover'] = Image::find('api',Array('about','nonav'));
|
||||
$apps['about']['name'] = 'about';
|
||||
|
||||
$apps['logout']['title'] = lang('Logout');
|
||||
$apps['logout']['name'] = 'logout';
|
||||
$apps['logout']['url'] = self::link('/logout.php');
|
||||
$apps['logout']['icon'] = $apps['logout']['icon_hover'] = Image::find('phpgwapi',Array('logout','nonav'));
|
||||
$apps['logout']['icon'] = $apps['logout']['icon_hover'] = Image::find('api',Array('logout','nonav'));
|
||||
|
||||
return $apps;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user