A user, mdemoss, reported an issue where trust level 0 users can see the “chat channels” link but clicking it redirects to /categories without displaying an error message. The issue was not reproducible by Lilly on an up-to-date Discourse instance.
After further investigation, mdemoss provided version details (Discourse 3.3.0.beta1-dev) and mdemoss found that the issue can be reproduced in a private window while logged out. However, enabling safe mode resolves the issue.
It was discovered that the “chat channels” link appears in a custom sidebar section with class sidebar-custom-sections. Firepup650 and Lilly suggested that the issue is likely caused by a custom sidebar link to chat, which is not the default behavior. Lilly recommended removing the custom chat link and using the default ones.
At trust level 0, users cannot access chat but the “chat channels” link is visible in the left nav bar. Clicking the link redirects to /categories without indicating any error occurred.
UX could be improved by either reporting an error or removing the link.
Thanks for the message. I cannot reproduce this on the most recent commit version, nor on a hosted site. When I use a test user with TL_0, I do not get the chat link in the navigation sidebar menu. And if I switch between test users of various trust levels, TL_0 is the only one that doesn’t get chat besides anon.
Are you on an up-to-date Discourse instance? Can you perhaps provide more details of the browser, OS, etc. and even screenshots? Try safe mode as well and see if the chat/DM link appears there for TL_0.
I can repro the problem by opening a private window and browsing while logged out.
When I enable safe mode while logged out in a private window the problem does not occur. Instead I see a “Oops! That page doesn’t exist or is private.”
However: trying safe mode while logged in at level 1 when I would expect it to work I get the “Oops!” message after clicking “chat channels.”
It’s in the top left in the div with class sidebar-custom-sections
I think I understand why it wouldn’t repro now.
Pasting a link to a valid chat channel like example.com/chat/c/general/2 into a logged-out private window also redirects to /categories and displays no error message.
The default chat links to channels and DM’s are these ones in the lower left (unless the order has been changed or they have been hidden by a theme component or plugin).