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

If you delete the "admin" role and you have just one user with the admin right, the site become inaccessible.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7, 1.7.1, 1.7.2, 1.8, 1.8.1
    • Fix Version/s: 1.7.3, 1.8.3, 1.9
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      In the role definition if you delete the "Admin" role the site become unmanageable and every request to the administration forms are rejected. The only solution is to recreate the "Admin" role via SQL commands or via a restoration of backed up tables of role and role_allow_assign.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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