Removing the "File Browser Tab" for certain roles
No need to do any coding. We can do it through admin dashboard itself.

Just go to below link:


  /admin/config/media/imce


Under "Role-profile assignments" just choose "Public Files" as NONE against a user role to whome you don't want to show the "File Browser".