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

Unenroll from user profile doesn't work properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3, 1.9
    • Fix Version/s: 1.8.4, 1.9, 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Perhaps this applies too to 1.9 and 1.7. To reproduce in 1.8:

      1. Enrol a user in a course with unassignself capability enabled
      2. Impersonate the student or login as such student
      3. Go to his/her personal profile
      4. Click in the "Unenrol me from XXX" button

      You get a "Sorry, but you do not currently have permissions to do that (Assign roles to users)" message.

      This problem can be resolved by modifying user/view.php or by modifying course/unenrol.php. I've attached a patch for 1.8.1+ that applies the former solution. I you can review...

      Thanks in advance

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              jsegarra Juan Segarra Montesinos
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jan/08