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

Hidden courses not in category list not visible to teachers on those courses

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.9
    • Roles / Access
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      If you have a hidden course, then when a teacher on that course looks at /course/category.php?id=3, they don't see that course listed.

      The problem is that it was doing has_capability('moodle/course:viewhidden',$course->context) when
      it meant has_capability('moodle/course:viewhiddencourses',$course->context).

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Mar/08