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

3.5.3 - not possible to deactivate user which is room owner #18659

Closed
emikolajczak opened this issue Aug 24, 2020 · 3 comments
Closed

3.5.3 - not possible to deactivate user which is room owner #18659

emikolajczak opened this issue Aug 24, 2020 · 3 comments

Comments

@emikolajczak
Copy link

Description:

There is not possible to "Deactivate" user which is owner of any room. From admin panel, when click deactivate dialaog box appears but is greyed out and "Yes, deactivate it!" can not be clicked.

image

Also it is impossible from REST API. Bellow error appears

  "details": {
    "shouldBeRemoved": [
      "test trim"
    ],
    "shouldChangeOwner": [
      "archiwum"
    ]
  },
  "error": "[user-last-owner]",
  "errorType": "user-last-owner",
  "success": false
} 

This bug totally blocks us from upgrade to newest version.

Steps to reproduce:

  1. Go to Admin -> users and search for user which is owner of any room
  2. Clikc "Deactivate"
  3. Greyed out dialog box appears, user cannot be deactivated
  4. Try "Deactivate" user from REST API call
  5. Described error appear

Expected behavior:

User will be deactivated and new owners of rooms will be assigned

Actual behavior:

Not possible to deactivate an user

Server Setup Information:

  • Version of Rocket.Chat Server: 3.5.3
  • Operating System: Centos 7
  • Deployment Method: docker-compose
  • Number of Running Instances: 9
  • DB Replicaset Oplog: YES
  • NodeJS Version: v12.16.1
  • MongoDB Version: 4.0.14

Client Setup Information

  • Desktop App or Browser Version: both
  • Operating System: Windows 10

Additional context

Relevant logs:

@emikolajczak
Copy link
Author

Still an issue on 3.5.4

@gabriellsh
Copy link
Member

Closed by #18596

Please, make sure to do a quick search on the open & closed issues before opening a new one. I closed a few of these already. Thanks for your comprehension 😉 !

@emikolajczak
Copy link
Author

Hi, thanks for fix.
Is this fix also for REST API?

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

No branches or pull requests

2 participants