This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Visualitzation User
#8
(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.
Reply


Messages In This Thread
Visualitzation User - by jmir - 14.07.2022, 06:34
RE: Visualitzation User - by fleeceable - 14.07.2022, 08:31
RE: Visualitzation User - by Daniel - 14.07.2022, 08:41
RE: Visualitzation User - by jmir - 14.07.2022, 10:20
RE: Visualitzation User - by jmir - 14.07.2022, 08:46
RE: Visualitzation User - by Daniel - 14.07.2022, 10:35
RE: Visualitzation User - by jmir - 14.07.2022, 12:54
RE: Visualitzation User - by Ibrahim - 13.04.2023, 19:38
RE: Visualitzation User - by admin - 14.04.2023, 07:15
RE: Visualitzation User - by Ibrahim - 14.04.2023, 07:28
RE: Visualitzation User - by admin - 14.04.2023, 08:05
RE: Visualitzation User - by Ibrahim - 14.04.2023, 08:42

Forum Jump: