New user can't flag/delete a post

AI-generated summary

A new user, tdelmas, reported that TL0 (new) users see a “delete” button under their own posts, but clicking it displays a message instructing them to flag the post — a feature they don’t have access to. This creates confusion, as the system implies an action they cannot perform. ondrej clarified that only TL1+ users can flag posts, but acknowledged the UX issue. tdelmas argued that either TL0 users should be allowed to flag their own posts, or the delete button’s message should be updated to avoid misleading them. HAWK and ondrej agreed the current behavior is nonsensical, especially since the delete button appears even on posts with no replies. tdelmas confirmed the issue persisted on a test topic without replies. codinghorror suggested the delete button should be hidden for TL0 users since they can’t flag anyway, and assigned the fix to eviltrout. jamie.wilson confirmed a fix has been merged into Discourse’s codebase to resolve this issue.

New users are presented with a “delete button” for their posts, but when they click on it a message says “You don’t have permission to delete this topic. If you really want it to be deleted, submit a flag for moderator attention together with reasoning”.

But there is no flag button either. I think new users should be able to at least flag their own posts, or the message should be updated.

Related to How do I flag a topic? - #7 by petercooperjr - Site Feedback - Let's Encrypt Community Support and TEST message for flag/delete - Site Feedback - Let's Encrypt Community Support

Hello,

To answer your question as a default TL1 (Basic user) and above can flag posts you can change this via this setting

min trust to flag posts

Thank you for those details.

So by default, new (TL0) users do have the delete button under their topics, which when clicked displays a message that says they should flag it, which they can’t do either.

It looks like a bug.

In my opinion, they should be able to either:

  • Flag their own posts (preferably)

or

  • Have a message associated with the delete button that doesn’t instruct them to do something they can’t do

Don’t you agree ?

I do agree. The reason the user can’t delete the topic is because there are responses, but that error makes no sense under these circumstances, which don’t seem unreasonable.

cc @codinghorror

What Hawk said. Seems nonsensical to show a button that doesn’t work when clicked.

When I tested it (TEST message for flag/delete - Site Feedback - Let's Encrypt Community Support) it was with a new topic without responses, and I couldn’t delete it either (but I don’t remember if it was before or after the “hide message”, and maybe that counts for an answer…)

Yeah we should fix this one @eviltrout. I guess the logic should be “show the delete button, but not if you are TL0, because you can’t flag anyway”? :thinking:

@jamie.wilson can you check this one out? Thanks!

https://github.com/discourse/discourse/pull/11045

A fix has been merged in for this issue.