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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Files API
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Moderate

    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

              dongsheng Dongsheng Cai
              dongsheng Dongsheng Cai
              Nobody Nobody
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10