Posts: 242
Threads: 56
Joined: Sep 2015
Reputation:
0
Hi,
Is there any way to create a user that only have visualitzation rights?
It would be useful for example on an office building where users can see all the temperatures, setpoints and status but not allowed to change anything.
The administrator of the building (with its own user) should be the only user allowed to modify this values.
Thanks.
Posts: 4644
Threads: 24
Joined: Aug 2017
Reputation:
207
In JS you can make all element read only and hide all inline elements like this. This will work only in gui
Code:
$(function() {
if (window.Globals && Globals.user == 'admin') {
$('.item-control').addClass('item-read-only');
$('.item-control-single').addClass('hide');
}
});
------------------------------
Ctrl+F5
Posts: 242
Threads: 56
Joined: Sep 2015
Reputation:
0
Thanks for the answers!
I'll try second option because we'd like to see the same information (despite the user) but make it only readable.
Posts: 4644
Threads: 24
Joined: Aug 2017
Reputation:
207
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');
}
});
------------------------------
Ctrl+F5
Posts: 7762
Threads: 42
Joined: Jun 2015
Reputation:
447
If you need to hide certain plans for a user you can simply change access rights. Then a plan link to hidden plans won't be shown at all for this user.
Posts: 43
Threads: 8
Joined: Mar 2020
Reputation:
0
Hi,
No, I do not need to hide the plans. I need to make ready only some elements of the plan. For example, on/off is active but setpoint is ready only for the operator.
Thanks.