mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
"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:
parent
0e7eb65647
commit
11ce3ef3dc
@ -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?'.
|
||||
|
Loading…
Reference in New Issue
Block a user