discourse/app
David Battersby a19027afae
FIX: show 404 on new category page for moderators when Site Setting disabled (#21448)
Currently the /new-category url can be accessed by moderators, regardless of whether the Site Setting for moderators_manage_categories_and_groups is true or false.

On top of this, non authorized users can also access this page but shows errors (no 404 loaded).

Since the 404 redirect happens within Ember, we need to allow the site setting value to be accessed within JS. 

After this change all non admin users will see a 404 for this route, the exception being moderators if the moderators_manage_categories_and_groups setting has a value of true.

/t/73360
2023-05-10 14:26:49 +08:00
..
assets FIX: show 404 on new category page for moderators when Site Setting disabled (#21448) 2023-05-10 14:26:49 +08:00
controllers DEV: move sidebar community section to database (#21166) 2023-05-04 12:14:09 +10:00
helpers UX: Improve login required page (#20847) 2023-03-28 07:09:44 -05:00
jobs FEATURE: Add new notification for admin problems (#21287) 2023-05-03 19:35:22 +03:00
mailers FIX: Likes received count in digest email (#21458) 2023-05-09 19:19:26 +02:00
models FIX: Likes received count in digest email (#21458) 2023-05-09 19:19:26 +02:00
serializers DEV: move sidebar community section to database (#21166) 2023-05-04 12:14:09 +10:00
services FIX: do not allow title stuffing to dominate search (#21464) 2023-05-10 11:47:58 +10:00
views FIX: Likes received count in digest email (#21458) 2023-05-09 19:19:26 +02:00