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

Broken breadcrumbs link shown to course creators

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      45209-28
    • Pull Master Diff URL:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              simoncoggins Simon Coggins
              Peer reviewer:
              Simey Lameze
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14