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

course search is broken for unprivileged users on categories pages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.0.4
    • Course
    • MOODLE_400_STABLE
    • 75795-master-fix-course-search
    • Hide

      Testing Environment

      1. create a course named "english"
      2. create a second course named "history"

      Test #1

      1. log in as guest or any other unprivileged user (a user who is not administrator, not manager and not course creator)
      2. go to your_moodle_url/course/index.php
      3. search "english" on "search courses" form
      4. "history" course should disappear
      5. url on browser should be something like /course/search.php?search=english

      Test #2

      1. log in as administrator or manager or course creator
      2. go to your_moodle_url/course/index.php
      3. search "english" on "search courses" form
      4. "history" course should disappear
      5. url on browser should be something like /course/management.php?search=english

       

      Show
      Testing Environment create a course named "english" create a second course named "history" Test #1 log in as guest or any other unprivileged user (a user who is not administrator, not manager and not course creator) go to your_moodle_url/course/index.php search "english" on "search courses" form "history" course should disappear url on browser should be something like /course/search.php?search=english Test #2 log in as administrator or manager or course creator go to your_moodle_url/course/index.php search "english" on "search courses" form "history" course should disappear url on browser should be something like /course/management.php?search=english  

      Unprivileged users can not search courses on categories pages, because the value of the property "action" is /course/management.php.

       

      Steps to reproduce :

      1. log in as guest or any other unprivileged user (a user who is not administrator, not manager and not course creator)
      2. go to https://moodle.org/course/index.php
      3. search something on "search courses" form (example : français)

      Current result :

      Nothing happen.

      Expected result :

      You should only see the course "Moodle en français"

            jboulen Julien Boulen
            jboulen Julien Boulen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.