Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14589 META: Develop new File API
  3. MDL-21146

Every file should have a license type

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API
    • Labels:
      None
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Since we introduce repository api to moodle 2.0, some imported file may be used illegally.

      To solve this problem, we should add a field in mdl_files table to define a license type for each file and a new database table to store different license types.

      • Add a `license` field to {files}

        table

      • Create a {license}

        table, we store a short name in database, and full name and full content of license should be in language file (license.php)

      • API changes
        • attach license information when storing file into moodle file pool
        • return license information when geting file from moodle file pool
      • File picker changes
        File picker should have options to choose file license type when getting file from external repository

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10