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

Non-admins can add admin bookmarks block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8
    • 1.8
    • Blocks
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE

      A non-admin user on their My Moodle page finds the "Admin bookmarks" block listed in the drop-down menu of available blocks to add. It should only be shown for admin users.

      When a non-admin user selects to add this block the following debug info is printed:

      Error: Invalid context creation request for level "50", instance "3".

      • line 1675 of lib\accesslib.php: call to debugging()
      • line 1833 of lib\accesslib.php: call to create_context()
      • line 2980 of lib\accesslib.php: call to get_context_instance()
      • line 3867 of lib\accesslib.php: call to get_parent_contexts()
      • line 1688 of lib\accesslib.php: call to insert_context_rel()
      • line 1833 of lib\accesslib.php: call to create_context()
      • line 297 of blocks\moodleblock.class.php: call to get_context_instance()
      • line 319 of lib\blocklib.php: call to block_base->_add_edit_controls()
      • line 49 of my\index.php: call to blocks_print_group()

            dougiamas Martin Dougiamas
            delius Gustav W Delius
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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