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

Site admins selector does not indicate when $CFG->siteadmins is defined in config.php

XMLWordPrintable

    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80160-403-siteadminsconfigphp
    • MDL-80160-main-siteadminsconfigphp
    • Hide
      1. Define the list of site admins in the main config.php file:

        $CFG->siteadmins = '2';
        

      2. Visit the Site administration > Users > Permissions > Site administrators page
      3. TEST: Check that instead of the user selector, just a list of defined admins is shown with the explanation above.
      4. Remove the line from config.php and visit that page again.
      5. TEST: Check that the standard two-pane admin selector is present again.
      Show
      Define the list of site admins in the main config.php file: $CFG->siteadmins = '2'; Visit the Site administration > Users > Permissions > Site administrators page TEST: Check that instead of the user selector, just a list of defined admins is shown with the explanation above. Remove the line from config.php and visit that page again. TEST: Check that the standard two-pane admin selector is present again.

      Note: This issue was originally reported as "Setting in config.php to prevent site admin from assigning another site admin" with the following description. During the discussion, it evolved into an alternative bug fix aiming the potential usability issue.

      At a large client, there are too many site admins (> 20). Currently, each site-admin can also give another user the role of site-admin. The new site-admin has access to the entire Moodle site and all users. This is a potential data breach! 

      I would like to see a setting defined in the config.php that only the main administrator has the right to give other users the role of site admin.

        1. MDL-80160.png
          MDL-80160.png
          254 kB
        2. screenshot-1.png
          screenshot-1.png
          65 kB
        3. screenshot-2.png
          screenshot-2.png
          61 kB

            mudrd8mz David Mudrák (@mudrd8mz)
            a.vree Arnout Vree
            Dan Marsden Dan Marsden
            Safat Shahin Safat Shahin
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 58 minutes
                58m

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