13.04.2023, 19:38
(14.07.2022, 10:35)Daniel Wrote: Try this, Add additional class 'link' to your links
Code:$(function() {
if (window.Globals && Globals.user == 'admin') {
$('.item-control').addClass('item-read-only');
$('.item-control-single').addClass('hide');
$('.link').removeClass('item-read-only');
}
});
Hello Daniel,
I have two users whose names are manager and operator. The manager can access all element but the operator not all of them.
Can we change this code to make read only if the operetor is logged in and a link is added to the additional class?
Thanks.