Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20093

hide future course sections from students (weeks course format)

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9, 2.0, 2.6.4, 2.7.1
    • BACKEND
    • Course
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Easy

    Description

      show all the sections (topics) up to current date, when using course format Weeks
      and hide all future sections. dependent on correct system (server) date. of course.

      sections are hidden from students (role) but teachers (role)
      and other administrative stuff can see them.

      as time continues, more and more sections gets available to the students.

      to patch, open moodle/course/format/weeks/format.php (line 175)
      and change :
      if ($showsection ) {
      to :
      if ($showsection && !(has_capability('moodle/legacy:student', $context, $USER->id, false) && ($weekdate > $timenow)) ) {

      i guess we could have a $CFG to control this behaviour ?
      (if it becomes popular)
      or some kind of "course format" specific config page ?

      Attachments

        Issue Links

          Activity

            People

              nadavkav Nadav Kavalerchik
              nadavkav Nadav Kavalerchik
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: