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

Question comments - require system context permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 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.

            Unassigned Unassigned
            kimberley.johnston Kimberley Johnston
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m

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