Modified notifications widget to add the public stream when the current user is allowed to see it only

This commit is contained in:
Julian Schweinsberg 2018-04-09 19:18:53 +02:00
parent 04935f139d
commit 530a378aa1

View File

@ -123,7 +123,7 @@ class Notifications {
];
}
if(get_config('system', 'disable_discover_tab') != 1) {
if(can_view_public_stream()) {
$notifications[] = [
'type' => 'pubs',
'icon' => 'globe',