mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allow mods to choose restricted categories as parent category.
Currently moderators can't choose a category with only “See” permission as a parent in `edit-category` modal.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
categories=parentCategories
|
||||
allowSubCategories=true
|
||||
allowUncategorized=false
|
||||
allowRestrictedCategories=true
|
||||
onChange=(action (mut category.parent_category_id))
|
||||
}}
|
||||
</section>
|
||||
|
||||
@@ -138,7 +138,7 @@ export default ComboBoxComponent.extend({
|
||||
}
|
||||
|
||||
const permissionType = this.selectKit.options.permissionType;
|
||||
if (permissionType) {
|
||||
if (permissionType && !this.allowRestrictedCategories) {
|
||||
return permissionType === category.permission;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user