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

Create separate capability for deleting files in a Wiki

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Wiki (2.x)
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Right now, users with the capability mod/wiki:managefiles can delete files from a wiki without even creating a log entry in the Moodle logs.

      There is also no capability to control a role's ability to delete files without taking away their ability to add files.

      Since adding files is very useful for students, I therefore suggest splitting the capability mod/wiki:managefiles into mod/wiki:addfiles and mod/wiki:deletefiles.

      Testing instructions:

      1. Grant students the capability mod/wiki:addfiles
      2. Add files to a wiki as a student
      3. Try deleting files again - deleting files should not work

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            technikum-wien Stefan Weber
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: