Warning on @mentions and security permissions

AI-generated summary

Users are discussing a potential bug or missing feature in Discourse where @mentions in new topics within restricted categories do not trigger a warning if the mentioned user lacks access. outofthebox first reported the issue during a demo, noting confusion when the mentioned colleague didn’t receive notifications until permissions were fixed. cpradio confirmed it behaves inconsistently across instances, noting it works on older versions and some sites like Sitepoint but not on Meta. zogstrip suspects it may be a regression from recent composer changes and added it to their task list. codinghorror recalls seeing the warning work in private messages, suggesting the issue may be limited to specific contexts. maja clarified that @mention warnings were never implemented for new topic creation — they only appear in replies. outofthebox confirmed the issue occurred in a new topic and now understands the feature’s current scope, appreciating the clarification. The consensus is that this is not a regression but a known limitation: warning popups for @mentions are not yet supported in new topic posts, only in replies. A feature request could be made to extend this functionality to new topics.

Hi, today I was demoing Discourse for a colleague. I was @mentioning her in a test Category where she didn’t have access. We were quite confused why she wasn’t seeing them. Then I fixed the permissions and then all was fine. Is there a bug here? Or is it a feature request that there’s notice the @mention won’t be received?

1 curtida

Seems like a regression of some sort. As I can verify it happens on an older version of Discourse. But it doesn’t happen here at Meta.

3 curtidas

Could indeed be a regression due to the recent work on the composer.

Added to my list :memo:.

3 curtidas

Hmm, no, I’ve seen the warning popup recently (in a PM, though), so I know it is working in PMs at least.

That could be. I noticed it working on Sitepoint in restricted categories, but it doesn’t work here in a restricted category (I tried two of them)

I tried to reproduce this bug but by now it seems to be working fine. Perhaps you mentioned your colleague when creating a new topic, @outofthebox? Mention warnings are working only when writing replies, they weren’t supported for the new topic/message posts from the start.

4 curtidas

Hi, @maja, great insight. Yes, it was an @mention in a new Topic. I can see that behavior today - @mentioning someone, in a new Topic, with permissions in a Category where they don’t have access doesn’t provide a warning dialogue box.

I understand the specific focus of this feature better now. Thank you.

1 curtida