RocketChat / RocketChat/Rocket.Chat

Same Description for Different Roles

Open
#20,360 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

While setting description for roles it is currently possible that two different roles can have same description.
For ex: Admin role can be shown as Moderator by changing it's description

Steps to reproduce:
  1. Go to Administration > Permissions > Select Any Role
  2. Change it's description to already existing role's description
  3. We can save our preferences
Expected behavior:

We shouldn't be able to set same description for different roles

Actual behavior:

We are able to set.

Server Setup Information:
  • Version of Rocket.Chat Server: 3.11.0-develop
  • Operating System: Ubuntu
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
Client Setup Information
  • Desktop App or Browser Version:
  • Operating System:
Additional context
Relevant logs:

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 by reproducing the issue through Administration > Permissions with two roles, changing one description to match the other. Trace the permission and role update flow, then verify that duplicate descriptions are rejected and that existing distinct role descriptions continue to save correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.