The discussion addresses a reported issue where subcategories in Discourse v1.6.0.beta12 incorrectly inherit public access, violating the restricted permissions of their parent category 1. user1 argues that subcategories should never possess more rights than their main category and suggests this behavior should be changed by default 3. However, cpradio clarifies that the current behavior is intentional, as sub-categories do not inherit parent permissions 2. sam confirms that the underlying permission system is category-based with no inheritance implementation, noting that fixing this would be a major undertaking not currently scheduled. Despite this, sam agrees that updating the UI to automatically inherit permissions from the parent during subcategory creation would be a valuable improvement to prevent accidental data leaks. user1 appreciates this potential solution, acknowledging it would help administrators avoid similar security incidents 5.
I just noticed a major bug in the inheritance of access rights for subcategories:
How to reproduce: Create a category where only a certain group of people has access to. Now create a subcategory, without further access specifications. That subcategory violates the access rights of its main category and will be publicly available.
Expected behaviour: Subcategories should never be able to gain more rights than their main category.
Discourse does not have an implementation of inherited permissions between categories and sub-categories.
Totally fine to amend the UI to inherit from parent when creating new subcategories but the underlying permission system is category based with no inheritance. Changing this is a major piece of work that is not scheduled.