Skip to content

Conversation

@Cosnavel
Copy link
Contributor

Added Endpoint to remove a User from a specified Role.

Made use of app/authorization/server/methods/removeUserFromRole.js

Added Tests

@Cosnavel
Copy link
Contributor Author

Added Documentation RocketChat/docs#1868

@Cosnavel
Copy link
Contributor Author

@sampaiodiego, could you review, please?

Do a pipeline run for the API tests?

@lucassartor lucassartor self-requested a review July 2, 2021 13:16
@ostjen ostjen self-requested a review July 8, 2021 14:00
Copy link
Contributor

@ostjen ostjen left a comment

Choose a reason for hiding this comment

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

lgtm

@ostjen ostjen merged commit dca177f into RocketChat:develop Jul 8, 2021
@Cosnavel Cosnavel deleted the feat/rest-remove-user-from-role branch July 9, 2021 07:24
aditya-mitra added a commit to aditya-mitra/Rocket.Chat that referenced this pull request Jul 16, 2021
The custom message will be the sent for the first incoming in the channels selected by the OutOfOffice User
Added a second model OutOfOfficeRooms to effectively carry out search and send the OutOfOffice message

parent 6ef35ed
author aditya-mitra <[email protected]> 1625465055 +0530
committer aditya-mitra <[email protected]> 1626418539 +0530

Add Post Message Handler

The custom message will be the sent for the first incoming in the channels selected by the OutOfOffice User
Added a second model OutOfOfficeRooms to effectively carry out search and send the OutOfOffice message

add post message check

[FIX] Omnichannel - Fix issue with modals on room preview mode. (RocketChat#22541)

* Await error on main thread so meteor can handle it

* Fix an issue where clicking esc would trigger a room read on unsubscribed rooms

Co-authored-by: Renato Becker <[email protected]>

[FIX] Redirect to login after delete own account (RocketChat#22499)

[FIX] UIKit URL prop being ignored for buttons (RocketChat#22579)

Chore: Upgrade NPM dependencies (RocketChat#22562)

Chore: Upgrade Micro Services NPM dependencies (RocketChat#22561)

[FIX] Create Discussion modal - Parent room input not displaying correct room name RocketChat#22580

[IMPROVE] Rewrite OTR modals (RocketChat#22583)

* improve: rewrite accept otr modal

* improve: rewrite otr end modal

* improve: deny otr modal

* fix: lint

Co-authored-by: gabriellsh <[email protected]>

i18n: Language update from LingoHub 🤖 on 2021-07-05Z (RocketChat#22572)

* Language update from LingoHub 🤖

Project Name: Rocket.Chat
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat
User: Robot LingoHub

Easy language translations with LingoHub 🚀

* remove translated variables

Co-authored-by: Robot LingoHub <[email protected]>
Co-authored-by: Diego Sampaio <[email protected]>

Chore: [Snyk] Security upgrade node-gcm from 0.14.4 to 1.0.0 (RocketChat#22582)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724

[FIX] Livechat webhook request without headers (RocketChat#22589)

[IMPROVE] Rewrite Enter Encryption Password Modal (RocketChat#22456)

* improve: rewrite modal

* fix: modal props

* fix: translation key

* fix: review

Co-authored-by: gabriellsh <[email protected]>

[NEW] Convert Team to Channel (RocketChat#22476)

* wip

* Add extra param to listRoomsOfUser to filter rooms user can delete

* update the way permission was being checked

* new: convert team to channel

* fix: lastOwner warning

* fix: review

* improve: convert ChannelDesertationTable to ts

* Remove unused prop

Co-authored-by: Douglas Fabris <[email protected]>
Co-authored-by: Kevin Aleman <[email protected]>
Co-authored-by: Tasso Evangelista <[email protected]>

[IMPROVE] Rewrite Save Encryption Password Modal (RocketChat#22447)

* improve: rewrite modal

* fix: translation keys

* fix: review

* fix: lint

Co-authored-by: gabriellsh <[email protected]>
Co-authored-by: Tasso Evangelista <[email protected]>

[FIX] Error in permission check for getLivechatDepartmentByNameOrId method in Apps (RocketChat#22545)

[FIX] Checks the list of agents if at least one is online (RocketChat#22584)

Co-authored-by: Diego Sampaio <[email protected]>

remove sent roomIds

change OutOfOffice to OutOfOfficeUser model

move date validation to update.ts

correction in renaming (should be plural)

add OutOfOfficeRooms model

post message handler added

fix lint errors

[IMPROVE] Sidebar icons margins (RocketChat#22498)

* Change components

* Update fuselage

Co-authored-by: Tasso Evangelista <[email protected]>

[FIX] Convert Team to Channel menu order RocketChat#22606

Co-authored-by: Tasso Evangelista <[email protected]>

[IMPROVE] Rewrite URL check modal (RocketChat#22540)

* fix modal not being called

* Rewrite url change modal

Co-authored-by: Douglas Fabris <[email protected]>

[FIX] Button overlapping modal RocketChat#22605

Co-authored-by: Tasso Evangelista <[email protected]>

[FIX] User cannot delete own files in contextualbar RocketChat#22595

Co-authored-by: gabriellsh <[email protected]>

Regression: Client crashing on startup (RocketChat#22610)

[FIX] Confirm owner change process when deleting own account (RocketChat#22609)

* fix: confirm owner change deleting own account

* fix: missing return statement

Co-authored-by: Tasso Evangelista <[email protected]>

[FIX] Markdown for UiKit blocks (RocketChat#22619)

Regression: Change the name of called methods in Users model (RocketChat#22620)

[NEW] REST endpoint to remove User from Role (RocketChat#20485)

* [WIP] added test

* [WIP] added api endpoint to remove role from user

* [WIP] added test with Subscription Scope

* Update roles.js

* fix endpoint params

* update tests

* remove .only

Co-authored-by: Lucas Sartor Chauvin <[email protected]>
Co-authored-by: Leonardo Ostjen Couto <[email protected]>

Create README.md (RocketChat#22615)

Add the Out of Office Scheduler

Out of Office will be auto-disabled at the endDate and auto-enabled at the startDate
Internally uses AgendaJS

[FIX] VisitorClientInfo not showing (RocketChat#22593)

* fix visitor info

* fix prettier error

* include host and ip

Co-authored-by: Martin Schoeler <[email protected]>

Chore: Use projection instead of fields to avoid error log (RocketChat#22629)

fixed - room still listed after delete (RocketChat#22613)

Co-authored-by: gabriellsh <[email protected]>

[FIX] Prune messages from particular user(s) (RocketChat#22506)

[FIX] Livechat apps permission error (RocketChat#22511)

Bump version to 3.16.1

[FIX] Livechat webhook request without headers (RocketChat#22589)

[FIX] Error in permission check for getLivechatDepartmentByNameOrId method in Apps (RocketChat#22545)

[FIX] Checks the list of agents if at least one is online (RocketChat#22584)

Co-authored-by: Diego Sampaio <[email protected]>

Regression: Change the name of called methods in Users model (RocketChat#22620)

Bump version to 3.16.2

Bump version to 3.16.3

[FIX] Info page - Instances card modal table width RocketChat#22627
gabriellsh added a commit that referenced this pull request Jul 20, 2021
…improve/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listimprove/discussion-listMerge branch 'develop' of github.com:RocketChat/Rocket.Chat into fix/attachment_emoji

* 'develop' of github.com:RocketChat/Rocket.Chat: (119 commits)
  [IMPROVE] Configuration for indices in Apps-Engine models (#22705)
  [FIX] Use room's last message time when visitor did not send any message (#22695)
  F room doesnt exists error when uploading file as first message (#22590)
  [IMPROVE] Refactor `livechat.registerGuest` function (#22684)
  change livechat_enabled default value to true (#22697)
  Chore: added pagination to search msg endpoint (#22632)
  Fixed crush in the getChannelHistory method (#22667)
  Regression: Fix ee microservices build (#22656)
  [IMPROVE] Rewrite sidebar footer as React Component (#22687)
  [FIX] Livechat config endpoint is not returning all settings (#22686)
  [FIX] Info page - Instances card modal table width #22627
  Bump version to 3.16.3
  fixed - room still listed after delete (#22613)
  Chore: Use projection instead of fields to avoid error log (#22629)
  [FIX] VisitorClientInfo not showing (#22593)
  Create README.md (#22615)
  [NEW] REST endpoint to remove User from Role (#20485)
  Bump version to 3.16.2
  Regression: Change the name of called methods in Users model (#22620)
  [FIX] Markdown for UiKit blocks (#22619)
  ...
gabriellsh added a commit that referenced this pull request Jul 20, 2021
…status-message

* 'develop' of github.com:RocketChat/Rocket.Chat: (114 commits)
  [FIX] Remove team's related actions inside of discussion #22470
  [IMPROVE] Configuration for indices in Apps-Engine models (#22705)
  [FIX] Use room's last message time when visitor did not send any message (#22695)
  F room doesnt exists error when uploading file as first message (#22590)
  [IMPROVE] Refactor `livechat.registerGuest` function (#22684)
  change livechat_enabled default value to true (#22697)
  Chore: added pagination to search msg endpoint (#22632)
  Fixed crush in the getChannelHistory method (#22667)
  Regression: Fix ee microservices build (#22656)
  [IMPROVE] Rewrite sidebar footer as React Component (#22687)
  [FIX] Livechat config endpoint is not returning all settings (#22686)
  [FIX] Info page - Instances card modal table width #22627
  Bump version to 3.16.3
  fixed - room still listed after delete (#22613)
  Chore: Use projection instead of fields to avoid error log (#22629)
  [FIX] VisitorClientInfo not showing (#22593)
  Create README.md (#22615)
  [NEW] REST endpoint to remove User from Role (#20485)
  Bump version to 3.16.2
  Regression: Change the name of called methods in Users model (#22620)
  ...
@ggazzo ggazzo mentioned this pull request Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants