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

My private files link in navigation block needs capability check

    XMLWordPrintable

Details

    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

    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

              samhemelryk Sam Hemelryk
              jenny-gray Jenny Gray
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/May/11