Skip to content
Permalink
Browse files

DRH can see visible announcement (allow_drh_access_announcement option)

  • Loading branch information...
jmontoyaa committed Nov 28, 2018
1 parent ba6bffc commit e30fb0dffa2f8dd7bbd82fcb0587b61ff1e6d95f
Showing with 7 additions and 2 deletions.
  1. +6 −1 main/inc/lib/AnnouncementManager.php
  2. +1 −1 main/install/configuration.dist.php
@@ -1624,6 +1624,11 @@ public static function getAnnouncements(
$allowDrhAccess = api_get_configuration_value('allow_drh_access_announcement');
if ($allowDrhAccess && api_is_drh()) {
// DRH only can see visible
$searchCondition .= ' AND (ip.visibility = 1)';
}
if (api_is_allowed_to_edit(false, true) ||
($allowUserEditSetting && !api_is_anonymous()) ||
($allowDrhAccess && api_is_drh())
@@ -1819,7 +1824,7 @@ public static function getAnnouncements(
$searchCondition AND
ip.visibility='1' AND
announcement.session_id IN ( 0,".api_get_session_id().")
$groupBy
$groupBy
";
}
}
@@ -1018,7 +1018,7 @@
// Activate the view with ViewerJS for PDF files within the lessons for IPad and IPhone
// $_configuration['allow_pdf_viewerjs_in_lp'] = false;
// Allow DRH user to access all session course announcements
// Allow DRH user to access all visible session course announcements
// $_configuration['allow_drh_access_announcement'] = false;
// Allow my personal files link in the homepage

0 comments on commit e30fb0d

Please sign in to comment.
You can’t perform that action at this time.