# 親/サブカテゴリの関係を変更すると、カテゴリのセキュリティ設定がリセットされる

**URL:** https://meta.discourse.org/t/category-security-settings-reset-when-changing-parent-subcategory-relationship/399976
**Category:** Bug
**Created:** [2026 年 4 月 5 日午前 11:16 UTC](https://meta.discourse.org/t/category-security-settings-reset-when-changing-parent-subcategory-relationship/399976 "2026-04-05T11:16:57Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2026 年 4 月 8 日午後 5:59 UTC](https://meta.discourse.org/t/category-security-settings-reset-when-changing-parent-subcategory-relationship/399976/9 "2026-04-08T17:59:53Z")

</div>

ご報告ありがとうございます！Meta でもかつて同様の問題に直面しました。

カテゴリの権限を可能な限り維持する更新をマージしました。これにより、カテゴリの権限は親カテゴリがそれを必要とする場合のみ変更されます（より制限の厳しい親カテゴリは、サブカテゴリにも同じ基準の制限を要求します）。

> <https://github.com/discourse/discourse/pull/38225>
>
> Applies when \`enable\_simplified\_category\_creation\` is true. 
> 
> When changing a …parent of an existing category, we were inheriting the parent's permissions even in cases we didn't need to. This makes it easy to mistakenly open up private categories when they're moved to a public parent category. 
> 
> This update checks the permissions before changing them based on a new parent so:
> 
> \* New category: inherits parents permissions (current behavior)
> \* Editing category: if the new parent is more permissive than the previous parent... we can keep restrictive subcategory permissions unchanged
> \* Editing category: if the new parent is more restrictive than the previous parent... we must change the subcategory permissions to match 
> 
> Includes tests for various mixes of permissions.

---

_[View the full topic](https://meta.discourse.org/t/category-security-settings-reset-when-changing-parent-subcategory-relationship/399976)._
