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

assign -> the export to portfolio button should not be shown if the user has not the right to export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1, 2.7.3, 2.8.1, 2.9
    • Fix Version/s: 2.7.5, 2.8.3
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable portfolios in advanced settings
      2. Enable the file download portfolio plugin
      3. Create an assignment
      4. As student submit a response to the assignment
      5. As student, verify you can see the portfolio buttons to export your assignment files
      6. Log out of student
      7. As admin, edit the student role to remove the mod/assign:exportownsubmission capability
      8. Log back in as student
      9. VERIFY: you can no longer see the export buttons
      Show
      Enable portfolios in advanced settings Enable the file download portfolio plugin Create an assignment As student submit a response to the assignment As student, verify you can see the portfolio buttons to export your assignment files Log out of student As admin, edit the student role to remove the mod/assign:exportownsubmission capability Log back in as student VERIFY: you can no longer see the export buttons
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-41166-master

      Description

      • Enable and configure Mahara for the Moodleinstallation
      • students don't have the right to export their assignments to Mahara
        -> mod/assign:exportownsubmission is not set
        -> moodle/portfolio:export is not set
      • add an online assignment with all the default configuration

      when a student adds a submission there is the button 'export to portfolio'

      add to line 2152 in assign/locallib.php

      if (has_capability('mod/assign:exportownsubmission', $this->context)) {

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  2/Feb/15