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

mod/data:exportentry and mod/data:exportallentries are basically the same capability.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.9
    • Fix Version/s: None
    • Labels:
    • Affected Branches:
      MOODLE_29_STABLE

      Description

      Both mod/data:exportentry and mod/data:exportallentries handle the same situation.
      If you have the capability mod/data:exportentry you can export any entry and so you have the right to download all entries.
      I believe that we can remove exportallentries and simplify the already complex capability system.

      Also when exporting a record via .csv or .ods we use the capability DATA_CAP_EXPORT which is a constant for mod/data:viewalluserpresets
      This seems weird and I expect that when giving or denying the export functionality, people would expect it to relate to this as well.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: