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

**URL:** https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696
**Category:** Bug
**Created:** [April 20, 2024, 12:07am UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696 "2024-04-20T00:07:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![HamMan2118](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hamman2118/32/383565_2.png) [@HamMan2118](https://meta.discourse.org/u/HamMan2118)
#### Post date: [April 20, 2024, 12:07am UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696/1 "2024-04-20T00:07:34Z")

</div>

Heyo 🙂

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.

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/f/5/ff5786122b1ad3e9302c95994a489b5b6138ac05.png)

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!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 20, 2024, 11:27am UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696/2 "2024-04-20T11:27:07Z")

</div>

What would expect to happen?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [April 20, 2024, 11:50am UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696/4 "2024-04-20T11:50:20Z")

</div>

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.

 ![Screenshot_20240420_133725_Chrome](https://global.discourse-cdn.com/meta/original/4X/9/9/4/994c1cfd9dd48b975dac7c1f42b896a6fa6abe09.jpeg)

---

<div class="post-metadata">

### Author: ![HamMan2118](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hamman2118/32/383565_2.png) [@HamMan2118](https://meta.discourse.org/u/HamMan2118)
#### Post date: [April 20, 2024, 12:47pm UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696/5 "2024-04-20T12:47:42Z")

</div>

> [@pfaffman](#):
>
> What would expect to happen

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

> [@Moin](#):
>
> Maybe it could hide the original category from users, who cannot see that category

Yes, this is what happened previously.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 16, 2024, 10:07pm UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696/10 "2024-05-16T22:07:08Z")

</div>

Thanks for the report @HamMan2118 👍

This will be fixed, amongst other UI fixes in 👇

[https://github.com/discourse/discourse/pull/27058](https://github.com/discourse/discourse/pull/27058)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 20, 2024, 6:00am UTC](https://meta.discourse.org/t/private-categories-showing-in-topic-edit-history-if-a-user-does-not-have-access-to-it/304696/12 "2024-05-20T06:00:52Z")

</div>

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