Page MenuHomePhabricator

Disable or hide reply form for anonymous users when the thread is resolved
Open, Needs TriagePublic

Description

Reported in Extension talk:Flow

Anonymous users gets a reply form for resolved threads that they can't reply to.

Background

Currently, anonymous users can't reply to resolved or closed threads (which is reasonable), yet the reply form still allows the user to type a response and click the submit button.

Capture d’écran_2017-06-23_13-04-56.png (417×1 px, 53 KB)

Expected

No reply form.

Actual

It lets you write your reply, use the interface and click the "reply anonymously" button.

Proposed solution

  • Hide the reply buttons and the text area.
  • Inform the anonymous users that they can't reply because the thread is closed, and tell them they need to login / register to reply to such threads.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Trizek-WMF subscribed.

I've reproduced this issue, see my screenshot in the description.

This comment was removed by Trizek-WMF.

For a logged in user, no reply form will be displayed:
Compare - a logged in user

Screen Shot 2017-06-30 at 11.53.32 AM.png (450×1 px, 46 KB)

Anon user:

Screen Shot 2017-06-30 at 11.54.12 AM.png (444×1 px, 49 KB)