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

Only Admin can move courses to another category

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7, 1.7.1, 1.8
    • Fix Version/s: 1.8.1, 1.9
    • Labels:
      None
    • Environment:
      1) Solaris 10, Oracle 10g, Firefox 2.0.0.2
      2) Windows XP, MySQL
    • Database:
      MySQL, Oracle
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      We created 1 category and gave our coursecreator the following rights:

      1. Capabilities/moodle/category:create
      2. Capabilities/moodle/category:delete
      3. Capabilities/moodle/category:update
      4. Capabilities/moodle/category:visibility
        With editing on in "course categories" (/course/category.php) our coursecreator cannot move the selected course to another category!

      Near Line 135 of category.php, if you change adminediting to creatorediting the problem is gone...:
      /// Editing functions

      if ($adminediting) {

      /// Move a specified course to a new category

        Attachments

          Activity

            People

            • Assignee:
              lazyfish Yu Zhang
              Reporter:
              protzek D P
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07