chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Learning Path, advanced Restricted User Access by Date

Open chamilo-uga opened this issue 1 year ago • 3 comments

Hi, there is already an option to restrict the Learning Path access to some users. It was not enought for our teachers. I've develop for v1 a improved functionnality for this. You can see details here : https://chamilosimsu.wordpress.com/2019/06/27/restreindre-lacces-a-un-parcours-par-utilisateur-et-par-date/

Our teachers really appreciate it. It does not technicaly overwrite the genuine existing functionality.

Image

chamilo-uga avatar Jun 10 '25 14:06 chamilo-uga

Do you need any database change for this? At first glance, it looks like all you need is already in the database.

ywarnier avatar Jun 20 '25 08:06 ywarnier

Implemented advanced Learning Path access restrictions by user/group and date. https://github.com/chamilo/chamilo-lms/pull/8429/changes/1a3a47668d06240620daacbe60d1b4b922ab3dd8

Changes included:

  • Added an “Advanced access” action to each Learning Path.
  • Added a Vue page to manage LP access restrictions without changing the database.
  • Reused the existing c_lp_rel_user table and its existing date fields.
  • Added per-user restrictions with start/end dates or always-visible access.
  • Added group-based restrictions using the existing group relation data.
  • Added search by name, email, username or group.
  • Added validation to prevent invalid date ranges.
  • Fixed saving to update existing restrictions safely instead of creating duplicates.
  • Enforced the restrictions in the Learning Path list and direct LP player access.

Tested with:

  1. Teacher/admin creating a restriction for one student.
  2. Future start date: the LP is hidden/blocked for the student.
  3. Valid date range: the LP is visible and accessible.
  4. Expired date range: the LP is hidden/blocked.
  5. Direct access to the LP player URL is blocked when outside the allowed date range.
  6. Existing LP visibility behavior remains unchanged when no advanced restriction exists.

No database change was needed; the implementation reuses existing LP access fields.

christianbeeznest avatar May 15 '26 21:05 christianbeeznest

Closed due to lack of feedback

ywarnier avatar Sep 01 '26 15:09 ywarnier