RocketChat / RocketChat/Rocket.Chat
Create button remains visible when user has no creation permissions
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Navbar component that renders the "Create New" button and inspect how its menu sections array is built. Verify the behavior when that array is empty, then run the relevant frontend tests or checks. Done means the button is absent when no creation actions are available and remains available when at least one action exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100