25.11.2021, 09:12
Add this code to Custom JavaScript. Keep in mind that this will only block the visualization elements not the actual writing. By default Link elements and Widgets won't work with this solution. As a work-around you can add clickable class to the elements that the user should be able to click.
Code:
$(function() {
if (Globals.user == 'viewer') {
$('.layer > div').addClass('item-read-only');
$('.clickable').removeClass('item-read-only');
}
});