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

Cannot edit course settings if course is in hidden category.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.5
    • 2.5.1, FRONTEND
    • Course
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • wip-MDL-40088-master
    • Hide

      Give those users capability to view hidden categories in system context or the particular category context

      Show
      Give those users capability to view hidden categories in system context or the particular category context
    • Hide
      1. Create course category
      2. Create course in this category, enrol user as a teacher
      3. Hide this category (course will be hidden as well)
      4. Login as teacher, make sure you can edit this course AND move it to another category

      (Teacher won't be able to move it back though)

      Show
      Create course category Create course in this category, enrol user as a teacher Hide this category (course will be hidden as well) Login as teacher, make sure you can edit this course AND move it to another category (Teacher won't be able to move it back though)

    Description

      Upgraded school system to 2.5.latest. Teachers cannot edit settings in their courses.
      Testing method:
      Make category. Hide.
      Add class to that category.
      Add teacher in teacher role to that class.
      Enroll teacher in class.
      Try to change settings.

      Once you do this, you will receive:
      Category not known!
      on the results page. The error page gives no help:
      http://docs.moodle.org/25/en/error/moodle/unknowcategory

      By comparison:
      1.9 will allow you to do this, even if the teacher is not enrolled.
      2.4 will allow you to do this, if the teacher is enrolled.

      Thanks very much!

      Attachments

        Activity

          People

            marina Marina Glancy
            millia David Millians
            Sam Hemelryk Sam Hemelryk
            Damyon Wiese Damyon Wiese
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Jul/13