Change permissions

pull/2487/head
jmontoyaa 9 years ago
parent ed59aea31d
commit 9b1f65799a
  1. 5
      plugin/studentfollowup/StudentFollowUpPlugin.php

@ -104,6 +104,7 @@ class StudentFollowUpPlugin extends Plugin
$isAllow = true; $isAllow = true;
$showPrivate = true; $showPrivate = true;
} else { } else {
$isDrh = api_is_drh();
// Only admins and DRH that follow the user // Only admins and DRH that follow the user
$isAdminOrDrh = UserManager::is_user_followed_by_drh($studentId, $currentUserId) || api_is_platform_admin(); $isAdminOrDrh = UserManager::is_user_followed_by_drh($studentId, $currentUserId) || api_is_platform_admin();
@ -131,8 +132,8 @@ class StudentFollowUpPlugin extends Plugin
} }
} }
$isAllow = $isAdminOrDrh || $isCourseCoach || $isDrhSession; $isAllow = $isAdminOrDrh || ($isCourseCoach && $isDrh) || $isDrhSession;
$showPrivate = $isAdminOrDrh || $isDrhSession; $showPrivate = $isAdminOrDrh || ($isCourseCoach && $isDrh);
} }
return [ return [

Loading…
Cancel
Save