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

fix: Fixed no role assign to manual registered users despite of Default Roles for Users settings #28293

Merged
merged 19 commits into from
Mar 15, 2023

Conversation

bhardwajdisha
Copy link
Contributor

Proposed changes (including videos or screenshots)

Fixed no role assign to manual registered users despite of Default Roles for Users settings
changes done in apps/meteor/app/lib/server/functions/saveuser.js file and checked it on my local environment and it works fine. Please review this.

Rocket.chat.mp4

Issue(s)

closes #27736

Steps to test or reproduce

  1. Define your default roles on Admin UI - Account - Registration - Default Roles for Users
  2. Create a manual user through https://yourdomain/admin/users/new
  3. Check the role of the user created

Further comments

@bhardwajdisha
Copy link
Contributor Author

@dudanogueira Can you please review this

@hugocostadev
Copy link
Contributor

That is great! Thanks for your contribution!

What do you think to add the prefilled field role with the default role?

@hugocostadev hugocostadev self-assigned this Mar 6, 2023
@bhardwajdisha
Copy link
Contributor Author

Yes @hugocostadev, I think that will be great.
I see you have self assigned this task to yourself, so are you working on it or should I do this?

@hugocostadev hugocostadev removed their assignment Mar 10, 2023
@hugocostadev
Copy link
Contributor

No @bhardwajdisha you can work on that, I only assign myself to keep track

@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #28293 (ba77c1f) into develop (4861080) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #28293      +/-   ##
===========================================
+ Coverage    45.06%   45.12%   +0.05%     
===========================================
  Files          758      759       +1     
  Lines        14683    14688       +5     
  Branches      2074     2075       +1     
===========================================
+ Hits          6617     6628      +11     
+ Misses        7773     7767       -6     
  Partials       293      293              
Flag Coverage Δ
e2e 45.08% <100.00%> (+0.05%) ⬆️

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

@bhardwajdisha bhardwajdisha requested a review from a team as a code owner March 10, 2023 17:56
@bhardwajdisha bhardwajdisha changed the title [FIX] Fixed no role assign to manual registered users despite of Default Roles for Users settings fix: Fixed no role assign to manual registered users despite of Default Roles for Users settings Mar 10, 2023
@bhardwajdisha
Copy link
Contributor Author

Hi @hugocostadev , I have made the changes.
Can you please review them?

@hugocostadev hugocostadev self-requested a review March 14, 2023 23:40
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Mar 15, 2023
@ggazzo ggazzo added this to the 6.1.0 milestone Mar 15, 2023
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Mar 15, 2023
@hugocostadev hugocostadev added the stat: ready to merge PR tested and approved waiting for merge label Mar 15, 2023
@kodiakhq kodiakhq bot merged commit 5bae6e2 into RocketChat:develop Mar 15, 2023
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)
@milton-rucks milton-rucks modified the milestones: 6.1.0, 6.1.2 Apr 5, 2023
sampaiodiego pushed a commit that referenced this pull request Apr 12, 2023
@sampaiodiego sampaiodiego mentioned this pull request May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA skipped stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No role assign to manual registered users despite of Default Roles for Users settings
4 participants