get stylite search working again by adding implicit app rights for about

This commit is contained in:
Ralf Becker 2016-05-06 13:42:47 +00:00
parent f163be62e2
commit 30158d1e8d
2 changed files with 3 additions and 3 deletions

View File

@ -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']] ||

View File

@ -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;
}