Description
The Navbar "Create New" button remains visible even when a user does not have permission to create any resources.
The button is responsible for actions such as:
- Create channel
- Create team
- Create discussion
- Create direct message
When all of these permissions are unavailable, the button is still rendered in a disabled state.
Current behavior
Users see a disabled create button that cannot perform any action.
Expected behavior
The create button should not be displayed when no creation actions are available.
Why
Showing a non-functional action may create confusion and adds unnecessary UI clutter for restricted users.
Additional information
The menu sections array is empty when no creation actions are available, which could be used to determine whether the button should be rendered.
Description
The Navbar "Create New" button remains visible even when a user does not have permission to create any resources.
The button is responsible for actions such as:
When all of these permissions are unavailable, the button is still rendered in a disabled state.
Current behavior
Users see a disabled create button that cannot perform any action.
Expected behavior
The create button should not be displayed when no creation actions are available.
Why
Showing a non-functional action may create confusion and adds unnecessary UI clutter for restricted users.
Additional information
The menu sections array is empty when no creation actions are available, which could be used to determine whether the button should be rendered.