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

Comments can be deleted in frozen contexts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6, 3.7
    • Fix Version/s: None
    • Component/s: Comments
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      • Turn on context freezing (Site administration > Development > Experimental settings > Context freezing)
      • Create a Database activity (Activity 1)
        • Ensure it is configured to use the image bank preset
      • A user student is enrolled as a student on the course that Activity 1 is in

      Test

      1. Login as student
      2. Navigate to Activity 1
      3. Create a new entry
      4. Add a comment to the entry
      5. Verify that you can see the delete button for your comment
      6. Login as admin
      7. Navigate to the main page of Activity 1
      8. Open the Activity 1 action menu and select* Freeze this content*
      9. Press continue
      10. Login as student
      11. Navigate to Activity 1
      12. Open the entry you created in step 3
      13. Expand the comments
      14. Verify that you cannot see the delete button for the comment
      Show
      Setup Turn on context freezing (Site administration > Development > Experimental settings > Context freezing) Create a Database activity ( Activity 1 ) Ensure it is configured to use the image bank preset A user student is enrolled as a student on the course that Activity 1 is in Test Login as student Navigate to Activity 1 Create a new entry Add a comment to the entry Verify that you can see the delete button for your comment Login as admin Navigate to the main page of Activity 1 Open the Activity 1 action menu and select* Freeze this content* Press continue Login as student Navigate to Activity 1 Open the entry you created in step 3 Expand the comments Verify that you cannot see the delete button for the comment
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
      MDL-64525-m36
    • Pull 3.7 Branch:
      MDL-64525-m37
    • Pull Master Branch:

      Description

      If an activity that uses comments is Frozen the comments that have been created can still be deleted by users.

      For example:

      1. As an administrator enable the content Freezing features.
      2. Create an database activity (Ensure Allow comments on entries is set to Yes)
      3. Use the image bank preset
      4. Add a new entry
      5. Create a comment on the new entry
      6. Freeze the database
      7. View the entry and expand the comments

      Actual result

      The comments appear with a delete button, that functions to delete the comment.

      Expected result

      The comments appear and have no delete button present.

      This also affects assignments (and presumably all plugins that use comments)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: