Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1492

OU blog: Shows 'Delete' link next to comments users can't delete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.9.4
    • None
    • MOODLE_19_STABLE

      • Logged in as student A
      • In a course blog
      • Looking at a post made by A
      • Delete links appear next to all comments.

      This is incorrect. On a course blog, students can only delete their own comments. They are not allowed to delete comments made by other students, even in response to their own post.

      The system correctly enforces this (you get an error if you try) but the links should not be displayed.

      Correct logic (already in place for checking permission when you try to delete) is that you can delete if and only if one of the following is true:

      • You have managecomments permission on the context
      • It is your own personal blog
      • You made the comment

            quen Sam Marshall
            quen Sam Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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