HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

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.

But I want the category list like this:

The "Internet" is displayed as Heading.

Here is a nor perfect solution:


change like this:

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


Sign In or Register to comment.