RocketChat / RocketChat/Rocket.Chat

Create button remains visible when user has no creation permissions

Open Beginner friendly
#40,731 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
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.

Image
Expected behavior

The create button should not be displayed when no creation actions are available.

Image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.