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

user_menu does not validate access to items - if badges/messages are enabled, if user has capabilities, etc.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: Navigation
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      The new user_menu added in MDL-45893 shows a link to "My badges" even when badges are disabled at the site level.

      Summary of the devchat discussion and comments below:
      user_menu items must respect site settings and user capabilities. The most reliable way to do it is to use items from navigation and check if they are present for the current user. This will require changing syntax of the setting $CFG->customusermenuitems

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              danmarsden Dan Marsden
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: