I would like to know if there is a way to hide version history for a set of users who has a role ? Or it can be other way around like show version history for a set of users who has X role and hide it for everybody else. If possible please share the details.
As per my knowledge, you can override the "document-details page's" 'JS' file and page 'template(ftl)' file.
In js file, call data webscript to fetch the user role information and passing the role in model object, you can the same in template ftl file to restrict the rendering of version control component.
I read somewhere that we should not override but we should extend from the existing system. It inturn means we have to modify the document details.ftl file and keep it in some extension folder to see the changes.
It worked when I have overridden the actual file but I am wondering under which folder structure should I keep this modified file to see the changes ?