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

Non-global administrator cannot delete course categories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • None
    • 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.10, 1.9.17, 2.0, 2.0.8, 2.1.8, 2.2.5, 2.3.2, 2.4
    • Administration, Course
    • Any
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MDL-20996-24-1
    • Moderate
    • Hide
      1. Create a category
      2. Go to course/index.php (This should show a list of all the categories)
      3. Select the appropriate course.
      4. Go to the 'Settings' menu [Category: xxxxx->Assign roles].
      5. Assign the role of manager for that category to an account which does not have the global manager or admin role.
      6. Login as the manager.
      7. Make sure that you 'Turn editing on' in the Settings menu.
      8. Create a sub-category within the previously created category.

      [Test] New Functionality

      • Create a sub sub category.
      • Hide the newly created sub-category (this should hide the sub sub category as well)
      • Delete the newly created sub-category (This should take you to a different page saying that you need to delete all sub categories under this category)
      • Delete the sub sub category and then the sub category.

      The interface for hiding, editing, assigning roles and deleting should be shown and functional.

      Show
      Create a category Go to course/index.php (This should show a list of all the categories) Select the appropriate course. Go to the 'Settings' menu [Category: xxxxx->Assign roles] . Assign the role of manager for that category to an account which does not have the global manager or admin role. Login as the manager. Make sure that you 'Turn editing on' in the Settings menu. Create a sub-category within the previously created category. [Test] New Functionality Create a sub sub category. Hide the newly created sub-category (this should hide the sub sub category as well) Delete the newly created sub-category (This should take you to a different page saying that you need to delete all sub categories under this category) Delete the sub sub category and then the sub category. The interface for hiding, editing, assigning roles and deleting should be shown and functional.

      A manager assigned to any category can create sub-categories using "Add a sub-category" button in /course/category.php

      After creating a category it can be renamed, but it cannot be deleted, because category delete functionality does not exists within /course/category.php and /course/editcategory.php?id=3

      The global administrator can do this using /course/index.php?categoryedit=on, but a manager with rights in category does not have such functionality.

            Unassigned Unassigned
            vadimon Vadim Dvorovenko
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.