Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add rid to scope of create-invite-links permission check #28241

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

LucianoPierdona
Copy link
Contributor

@LucianoPierdona LucianoPierdona commented Mar 2, 2023

Proposed changes (including videos or screenshots)

This PR fixes a bug where users with the owner role can't create invites because the button isn't being displayed for him, to solve this issue the rid was added to the scope of the check.

Issue(s)

Closes #27570

Steps to test or reproduce

  • Check that owner has privileges to create invites under admin permission settings
  • Create a channel as a regular user
  • Go to the member list
  • Look for the Invite button next to Add button

Expected Behavior

  • The invite button exists and is visible

Actual Behavior

  • The invite button is missing

Further comments

TC-416

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #28241 (cfcc8a6) into develop (7532102) will increase coverage by 2.60%.
The diff coverage is 56.60%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #28241      +/-   ##
===========================================
+ Coverage    40.15%   42.75%   +2.60%     
===========================================
  Files          737      745       +8     
  Lines        14463    14596     +133     
  Branches      2033     2056      +23     
===========================================
+ Hits          5808     6241     +433     
+ Misses        8380     8069     -311     
- Partials       275      286      +11     
Flag Coverage Δ
e2e 42.73% <56.60%> (+2.60%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@matheusbsilva137 matheusbsilva137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch 🙂

@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Mar 14, 2023
@LucianoPierdona LucianoPierdona changed the title Chore: Add rid to scope of create-invite-links permission check chore: Add rid to scope of create-invite-links permission check Mar 14, 2023
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Mar 14, 2023
@kodiakhq kodiakhq bot merged commit f6a8e15 into develop Mar 14, 2023
@kodiakhq kodiakhq bot deleted the fix/owner-not-being-able-to-create-invites branch March 14, 2023 18:29
gabriellsh added a commit that referenced this pull request Mar 15, 2023
…avatarEmoji

* 'develop' of github.com:RocketChat/Rocket.Chat:
  refactor: Types of Meteor methods (2/N) (#28424)
  fix: Fixed no role assign to manual registered users despite of Default Roles for Users settings (#28293)
  refactor: Types of Meteor methods (1/N) (#28420)
  fix: Emoji don't work after text in contiunous (#28216)
  chore: Add `rid` to scope of `create-invite-links` permission check (#28241)
  refactor(client): Move banner orchestration to `BannerRegion` effects (#28414)
  refactor: remove `Promise.await` calls from irc bridge (#28406)
@casalsgh casalsgh modified the milestones: 6.1.0, 6.1.2 Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create invite links permission does not work for room owner role in RC 5.4.0
6 participants