Skip to content
Permalink
Browse files

Add setting 'allow_drh_access_announcement' see BT#15072

Allow DRH users to access all announcements from course
  • Loading branch information...
jmontoyaa committed Nov 20, 2018
1 parent 472e8e5 commit 3bfab64cd09198b1b46f9be10de5bb2340e2cbd9
Showing with 7 additions and 1 deletion.
  1. +4 −1 main/inc/lib/AnnouncementManager.php
  2. +3 −0 main/install/configuration.dist.php
@@ -1622,8 +1622,11 @@ public static function getAnnouncements(
$extraGroupCondition = " AND ip.to_group_id = $group_id ";
}
$allowDrhAccess = api_get_configuration_value('allow_drh_access_announcement');
if (api_is_allowed_to_edit(false, true) ||
($allowUserEditSetting && !api_is_anonymous())
($allowUserEditSetting && !api_is_anonymous()) ||
($allowDrhAccess && api_is_drh())
) {
// A.1. you are a course admin with a USER filter
// => see only the messages of this specific user + the messages of the group (s)he is member of.
@@ -1018,6 +1018,9 @@
// 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
// $_configuration['allow_drh_access_announcement'] = false;
// ------ Custom DB changes (keep this at the end)
// Add user activation by confirmation email
// This option prevents the new user to login in the platform if your account is not confirmed via email

0 comments on commit 3bfab64

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