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

Capability moodle/user:ignoreuserquota is not respected in Private Files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.4, 2.5
    • Fix Version/s: 2.4.5, 2.5.1
    • Component/s: Files API
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Set userquota to 1000
      2. Create a role 'No user quota' with allow on moodle/user:ignoreuserquota
      3. Create a user and give him that role on a system context
      4. Log in as that user
      5. Go to your private files
      6. Make sure you can upload files more than 1kb, but less than the setting maxbytes
      7. Make sure file remain in area after saving
      Show
      Set userquota to 1000 Create a role 'No user quota' with allow on moodle/user:ignoreuserquota Create a user and give him that role on a system context Log in as that user Go to your private files Make sure you can upload files more than 1kb, but less than the setting maxbytes Make sure file remain in area after saving
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-40036-master

      Description

      The capability moodle/user:ignoreuserquota should allow a user to upload unlimited content to their private files, but this is not the case.

      Replication steps

      1. Set userquota to 1000
      2. Create a role 'No user quota' with allow on moodle/user:ignoreuserquota
      3. Create a user and give him that role on a system context
      4. Go to your private files

      Actual

      • You cannot upload files bigger than 1kb

      Expected

      • You can upload files up to maxbytes setting

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/13