How to hide specific role in custom html block?

I have created an UI for doctypes navigation and created custom html block for specific role and then I have placed all the custom html block in the home dashboard. It applies the UI for specific role but the problem is when using System Manager or Administrator it display all custom html block since it has all the roles applied.

That’s why I want to hide these custom html block for System Manager and Administrator.

Best Regards,
Peter John

Hi there,

There’s no way to do this out of the box. You can check roles/user id with javascript and then make the block visible only if the user passes the checks you put in place.