# Les utilisateurs non-membres peuvent accéder à la catégorie non classée même si elle est désactivée

**URL:** https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960
**Category:** Bug
**Created:** [Décembre 23, 2018, 5:48 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960 "2018-12-23T17:48:29Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Décembre 23, 2018, 5:48 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/1 "2018-12-23T17:48:29Z")

</div>

While researching [https://meta.discourse.org/t/cant-prevent-creation-of-uncategorized-topics/104874/7](https://meta.discourse.org/t/cant-prevent-creation-of-uncategorized-topics/104874/7), I found that users can view #Uncategorized even if it is disabled via site setting and has no topics within it. Users can visit it by navigating directly `/c/uncategorized`, as well as by searching in the category filter dropdown:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/1/e10f30e741d8fc007e1e7bf79cbb120aa0ab1a71.png)

The New Topic button is on the (empty) page, and lets them start composing without selecting a category, which shouldn’t be possible with the setting off. The composer should look like this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/8/6822cc95e4f8f6895e8600d8c0fb15c397fc04e8.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Décembre 24, 2018, 1:23 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/2 "2018-12-24T01:23:26Z")

</div>

Maybe we regressed here @j.jaffeux? Not sure.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [Janvier 7, 2019, 9:48 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/4 "2019-01-07T21:48:16Z")

</div>

I don’t think we regressed here.

- the URL is not a problem for me, I think we can leave it, it’s not causing any arm
- I can fix the category drop simply with [FIX: do not show #uncategorized in category drop if setting is disabled by jjaffeux · Pull Request #6856 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/6856)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Janvier 7, 2019, 10:14 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/5 "2019-01-07T22:14:07Z")

</div>

> [@j.jaffeux](#):
>
> the URL is not a problem for me, I think we can leave it, it’s not causing any arm

Fine with me.

> [@jomaxro](#):
>
> The New Topic button is on the (empty) page, and lets them start composing without selecting a category, which shouldn’t be possible with the setting off.

What about this? It seems like a regression to me - with #Uncategorized disabled users should be required to select a category before composing the body. However they are able to compose the body without a category if they click new topic from the uncategorized page.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [Janvier 7, 2019, 10:32 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/6 "2019-01-07T22:32:29Z")

</div>

Yes I fixed what was very easy for me. Need to think about the composer, if you thought we absolutely had to remove the URL, then it was solved with it. Maybe I should just redirect. Need to dig more, uncategorized has many cases and I’m unsure what this would cause.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Mai 11, 2019, 10:50 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/7 "2019-05-11T22:50:54Z")

</div>

What did we want to do with this @j.jaffeux?

---

<div class="post-metadata">

### Author: ![sat](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sat](https://meta.discourse.org/u/sat)
#### Post date: [Mai 12, 2019, 2:41 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/8 "2019-05-12T02:41:14Z")

</div>

I can confirm this bug is still there. You will not see uncategorized category in search but if you access thru link it shows.

`https://yourdiscoursesite.com/c/uncategorized`

---

<div class="post-metadata">

### Author: ![sat](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sat](https://meta.discourse.org/u/sat)
#### Post date: [Mai 15, 2019, 12:18 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/9 "2019-05-15T00:18:53Z")

</div>

@codinghorror anyone looking into this?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Mai 15, 2019, 1:46 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/10 "2019-05-15T01:46:53Z")

</div>

> [@sat](#):
>
> You will not see uncategorized category in search but if you access thru link it shows.

That’s.. not a bug though. The OP stuff, @j.jaffeux I am sure is looking at.

---

<div class="post-metadata">

### Author: ![sat](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sat](https://meta.discourse.org/u/sat)
#### Post date: [Mai 15, 2019, 4:01 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/11 "2019-05-15T04:01:25Z")

</div>

I feel it is a bug.  
If I access “staff” or “lounge” category it shows “Oops! That page doesn’t exist or is private.”

but for “uncategorized” it shows “There are no more Uncategorized topics.” I deleted all topics otherwise it shows those topics.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [Mai 15, 2019, 4:30 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/12 "2019-05-15T04:30:56Z")

</div>

Sure because those are _private_ categories.

It’s not a bug, nor is it the subject of this topic.

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [Mai 15, 2019, 4:40 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/13 "2019-05-15T04:40:19Z")

</div>

Aux fins de la catégorie #Contribute > Bug, une définition spécifique s’applique :

> [@sam](#):
>
> Un rapport de bug signifie que **quelque chose est cassé, empêchant l’utilisation normale ou typique de Discourse**.

Il s’agit d’un comportement inattendu, mais ce n’est pas un bug.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [Juillet 23, 2019, 10:04 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/14 "2019-07-23T10:04:07Z")

</div>

> [@jomaxro](#):
>
> Le bouton Nouveau sujet apparaît sur la page (vide) et permet de commencer à rédiger sans sélectionner de catégorie, ce qui ne devrait pas être possible si le paramètre est désactivé. L’éditeur devrait ressembler à ceci :

Je pense que cela devrait être une correction adéquate :

> <https://github.com/discourse/discourse/pull/7922>

Je n’ai pas écrit de test car il semble que nous n’ayons actuellement rien de lié à « sans catégorie » dans la suite de tests JavaScript.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Juillet 23, 2019, 10:33 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/15 "2019-07-23T10:33:38Z")

</div>

Fermez ce @jomaxro si vous pensez que c’est maintenant bon.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Juillet 23, 2019, 3:10 UTC](https://meta.discourse.org/t/non-staff-users-are-able-to-access-uncategorized-even-when-disabled/104960/16 "2019-07-23T15:10:20Z")

</div>


