Display Heading category when post new discussion

As we know, we can set a category display as discussions, nested,flat and heading.

You can not post a new discussion to Heading category.

So when I post a new discussion, the Heading cateogry just be hidden.

Screen Shot 2021-11-08 at 12.08.38 PM.png


But I want the category list like this:

Screen Shot 2021-11-08 at 12.02.58 PM.png

The "Internet" is displayed as Heading.

Here is a nor perfect solution:

library/core/class.form.php

change like this:

public static function verifyAdditionalPermissions(array $permissions, array $category): bool {
        $allowCategory = true;
        if($category['DisplayAs']=='Heading')
        {
            return true;
        }
        foreach ($permissions as $permission) {
            if (!isset($category[$permission]) || !$category[$permission]) {
                $allowCategory = false;
            }
        }
        return $allowCategory;
    }


😅

Sign In or Register to comment.