Private Categories showing in topic edit history if a user does not have access to it

AI-generated summary

A bug has been reported where private categories are visible in the edit history of a topic, even if the user doesn’t have access to that category. HamMan2118 provided a reproducible example and a screenshot. The expected behavior is for private categories to be hidden from users who cannot see them, as was the case previously. Moin suggested hiding the original category from users without access, which aligns with the expected behavior. The issue has been acknowledged and will be fixed in the PR #27058, as confirmed by zogstrip.

Heyo :slight_smile:

I have noticed a bug on two forums where if a topic is moved from a private category, which users do not have access to, to a public category which users do - the private category shows in the edits menu. See the example below.

I do not have access to the “Admin Only” category yet it shows anyway. Clicking on the category brings a 404 error.

To repro:
1.) Create a topic in the Staff category in the forum.
2.) After 5-10 minutes, move that topic to a public area of the forum.
3.) Log onto an account that does not have access to the Staff category and check the edit history.

Thank you!

4 Likes

What would expect to happen?

Maybe it could hide the original category from users, who cannot see that category. Then the history would look like that of a post which was moved from a PM to its own public topic.

1 Like

What this bug report is asking to be fixed - private categories were never shown when you moved topics.

Yes, this is what happened previously.

Thanks for the report @HamMan2118 :+1:

This will be fixed, amongst other UI fixes in :point_down:

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

5 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.