# Configured "read only banner" on category disables new topic button in theme component

**URL:** https://meta.discourse.org/t/configured-read-only-banner-on-category-disables-new-topic-button-in-theme-component/308420
**Category:** Bug
**Created:** [May 17, 2024, 12:55pm UTC](https://meta.discourse.org/t/configured-read-only-banner-on-category-disables-new-topic-button-in-theme-component/308420 "2024-05-17T12:55:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [May 17, 2024, 12:55pm UTC](https://meta.discourse.org/t/configured-read-only-banner-on-category-disables-new-topic-button-in-theme-component/308420/1 "2024-05-17T12:55:07Z")

</div>

**Problem:**

when

- the [New Topic Button theme component](https://meta.discourse.org/t/new-topic-button-in-the-header-on-all-pages/84551) is installed
- “Banner text when a user cannot create a topic in this category:” is configured on a category
- the user _does_ have permissions to create topics in the category

**then**

- the new topic button is disabled
- a tooltip “you do not have permission to create new topics here” shows

![image](https://global.discourse-cdn.com/meta/original/4X/3/f/c/3fc477da9c176e5bf42e0b1566e15674bf8d2d5b.png)

**expected** :

- the new topic button is not disabled since the user _does_ have permissions

the mere fact that a banner text is configured is not a reason to assume the user does not have permissions.

@awesomerobot See [code](https://github.com/discourse/discourse-new-topic-button-theme-component/blame/main/javascripts/discourse/components/custom-header-topic-button.gjs#L71)

@yigit this is the root cause of the issue we discussed yesterday

---

<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: [May 17, 2024, 1:44pm UTC](https://meta.discourse.org/t/configured-read-only-banner-on-category-disables-new-topic-button-in-theme-component/308420/2 "2024-05-17T13:44:13Z")

</div>

Thanks for reporting it! just merged a fix: [FIX: don't disable based on banner condition by awesomerobot · Pull Request #11 · discourse/discourse-new-topic-button-theme-component · GitHub](https://github.com/discourse/discourse-new-topic-button-theme-component/pull/11/files)

---

<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: [May 24, 2024, 4:55pm UTC](https://meta.discourse.org/t/configured-read-only-banner-on-category-disables-new-topic-button-in-theme-component/308420/3 "2024-05-24T16:55:25Z")

</div>

This topic was automatically closed after 7 days. New replies are no longer allowed.
