"only responding to after_navbar hook, if notifications is enabled for the user, since after_navbar get's called regardless of applicaton permissions"

This commit is contained in:
Ralf Becker 2009-08-25 11:23:07 +00:00
parent 0e7eb65647
commit 11ce3ef3dc

View File

@ -13,7 +13,8 @@
* @version $Id$
*/
$notification_config = config::read('notifications');
if ($notification_config['popup_enable']) {
if ($notification_config['popup_enable'] && $GLOBALS['egw_info']['user']['apps']['notifications'])
{
$GLOBALS['egw']->translation->add_app('notifications');
$popup_poll_interval = empty($notification_config['popup_poll_interval']) ? 60 : $notification_config['popup_poll_interval'];
echo '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup.js?'.