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

Users with "mod/forum:postprivatereply" capability cannot view their own private replies when "mod/forum:readprivatereplies" is not enabled

XMLWordPrintable

    • MOODLE_37_STABLE, MOODLE_400_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • 66924-view-own-private-reply-401
    • 66924-view-own-private-reply-master
    • Hide

      Environment

      1. Log in as teacher
      2. Create a course
      3. Go to participants and edit permissions
      4. Search mod/forum:postprivatereply
      5. Add student to allowed roles
      6. Create a forum
      7. Post a discussion
      Test #1
      1. Log in as student
      2. Go to created forum
      3. Reply privately to teacher post
      4. Check that you can view your own reply
      Test #2
      1. Log in as another student
      2. Go to created forum
      3. Check that you can see teacher post
      4. Check that you cannot see student post
      Show
      Environment Log in as teacher Create a course Go to participants and edit permissions Search mod/forum:postprivatereply Add student to allowed roles Create a forum Post a discussion Test #1 Log in as student Go to created forum Reply privately to teacher post Check that you can view your own reply Test #2 Log in as another student Go to created forum Check that you can see teacher post Check that you cannot see student post

      A user with the capability "mod/forum:postprivatereply" but without the capability "mod/forum:readprivatereplies" will be able to post a private reply, but not view their own private reply.

      To reproduce:

      1. Log in as admin.
      2. Go to Site administration / Users / Define roles
      3. Edit the non-editing teacher role and remove the "mod/forum:readprivatereplies" capability to it.
      4. Save the changes.
      5. Go to a forum discussion.
      6. Reply to one of the posts p1. Let's call this r1.
      7. Reply privately to your reply r1. Let's call this rp1.
      8. Reply to another author's post p2 privately. Let's call this rp2.

      What happens:

      • rp1 is visible to you.
      • rp2 is not visible to you.

      What I kinda expect:

      • If a user has the capability to post private replies but does not have the capability to read private replies, the user should at least be able to see the private replies that he/she posted.

        1. 400.png
          219 kB
          Ron Carl Alfon Yu
        2. 401.png
          197 kB
          Ron Carl Alfon Yu
        3. Master.png
          234 kB
          Ron Carl Alfon Yu
        4. MDL-66924.jpg
          14 kB
          Anna Carissa Sadia
        5. MDL-66924 (2).jpg
          11 kB
          Anna Carissa Sadia

            jboulen Julien Boulen
            jpataleta Jun Pataleta
            Mathew May Mathew May
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 7 minutes
                3h 7m

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