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

My private files link in navigation block needs capability check

    XMLWordPrintable

    Details

    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      There's a TODO in the code for navigationlib.php immediately before the outputting of the "my private files" link which confirms that a capability check is required.

      In a site where the private files repository is disabled, the link is still displayed.

      I think we need a check that the repository is enabled, and a capability check before the link is output in the nav block.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/May/11