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

If modules are restricted, courses created by a user with 'course creator' role don't contain any modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5, 2.0
    • Component/s: Course
    • Labels:
      None
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      If 'restrictedmodulesfor' is set to 'All courses', 'restrictbydefault' is set and 'defaultallowedmodules' are selected, courses created by a user with 'course creator' role don't contain any modules.

      Reproduce:
      1. visit 'Security' 'Modules security' in the 'Site Administration' menu
      2. set 'restrictmodulesfor'
      3. set 'restrictbydefault'
      4. select some 'defaultallowedmodules'
      5. save changes
      6. change to a user with a 'course creator' role
      7. create a new course

      Result:
      If you want to edit the course afterwards you don't have any ressources/activities available.

      Expected:
      I would expect the course to have at least the defaultallowedmodules in it.

      This seems related to MDL-13567

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mjollnir Penny Leach
                Reporter:
                adisch Adrian Schlegel
                Tester:
                Nicolas Connault
                Participants:
                Component watchers:
                Amaia Anabitarte, 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:
                  13/May/09