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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 2.8
    • Navigation
    • MOODLE_28_STABLE

      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

            Unassigned Unassigned
            danmarsden Dan Marsden
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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