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

Question comments - gives a link to edit comments, even if you don't have the right permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4.6, 4.5.2
    • 4.1.4, 4.2
    • Questions

      Apologies if this is a duplicate - haven't found anything yet.

      It appears that in order for a particular user to comment on a question in the question bank they need a variety of permissions:

      • moodle/question:commentall
      • moodle/question:commentmine
      • AND
      • moodle/comment:post 

      It was very unclear that we needed the moodle/comment:post permission and then more surprising to discover it must be given at a System context rather than course or similar. 

      If this permission is not granted then rather than a nice failure message about permissions or similar you get:

      "undefined is not an object (evaluating 'document.querySelectorAll("div.comment-area a")[0].style')"

      Steps to replicate:

      • Have a user role with both moodle/question:commentall and moodle/question:commentmine allowed, but no moodle/comment:post
      • Go to a question bank within a course and attempt to leave a comment
      • Get error when comment modal opens.

            cwarwicker C Warwicker
            kimberley.johnston Kimberley Johnston
            Mark Johnson Mark Johnson
            Tim Hunt Tim Hunt
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 51 minutes
                1h 51m

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