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

Broken breadcrumbs link shown to course creators

XMLWordPrintable

    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • 45209-28
    • Hide

      Test system roles

      1. Create a user
      2. Assign the user the "Course creator" role at the system level
      3. Login as the user
      4. Click Site Admin > Courses > Manage courses and categories
      5. Click the miscellaneous category
      6. Click "Create new course"
      7. The breadcrumbs is now: Home ► Site administration ► Courses ► Manage courses and categories ► Add a new course.
      8. The "Site Administration" breadcrumb should NOT be a link.
      9. Edit an existing course
      10. The breadcrumbs is now: Home ► My courses ► Miscellaneous ► Test Course ► Edit settings

      Test category role

      1. Revoke the users course creator role from the system.
      2. Give the user the course creator role in the category.
      3. Log in as the user
      4. Browse to the category and select 'Manage this category' from the administration block.
      5. Check the breadcrumb on that page makes sense.
      Show
      Test system roles Create a user Assign the user the "Course creator" role at the system level Login as the user Click Site Admin > Courses > Manage courses and categories Click the miscellaneous category Click "Create new course" The breadcrumbs is now: Home ► Site administration ► Courses ► Manage courses and categories ► Add a new course. The "Site Administration" breadcrumb should NOT be a link. Edit an existing course The breadcrumbs is now: Home ► My courses ► Miscellaneous ► Test Course ► Edit settings Test category role Revoke the users course creator role from the system. Give the user the course creator role in the category. Log in as the user Browse to the category and select 'Manage this category' from the administration block. Check the breadcrumb on that page makes sense.

      If a user has the ability to create courses, but not the ability to configure the site, the "Administration" link in the breadcrumbs on the "edit course" page is linked, but the destination of the link is unavailable.

      To reproduce

      1. Create a user
      2. Assign the user the "Course creator" role at the system level
      3. Login as the user
      4. Click Site Admin > Courses > Manage courses and categories
      5. Click the miscellaneous category
      6. Click "Create new course"
      7. The breadcrumbs is now: Home ► Administration ► Course categories ► Add a new course. Click "Administration".

      What happens

      The link gives an error:

      You get an error: Sorry, but you do not currently have permissions to do that (Change site configuration)

      What should happen

      The "administration" breadcrumb should not be a link if you don't have permission to view it.

            samhemelryk Sam Hemelryk
            simoncoggins Simon Coggins
            Simey Lameze Simey Lameze
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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