Description
I want to disable the option or the button to block users in direct messages
- Version of Rocket.Chat Server: 3.18.1
- Operating System: Ubuntu 18.04
- Deployment Method: snap
- Number of Running Instances: 1
- NodeJS Version: v12.22.1
- MongoDB Version: 3.6.14
- Proxy: nginx
- Firewalls involved:
Hi! Welcome to our forums!
Unfortunately I was not able to find a way to disable the block at system level.
However, there is a “hacky” way to just hide the button for users, so they’ll not be able to block each other easily.
You need to add a custom css.
Go to Admin > Layout > Custom Css, and add the following:
button[title="Block"]{
display:none;
}
Let me know if that helps.
Thanks!
1 Like
Hi,
I have a new problem on this topic, in the mobile application if the button to block a user can be displayed. How could I remove that option on a mobile phone?
Thanks
Hi! That’s not possible with the mobile
The CSS change will only affect desktop and browser versions.