04.09.2022, 19:21
Hi!
how to hide/show an object depending on the logged user?
Thanks
Peppe
how to hide/show an object depending on the logged user?
Thanks
Peppe
how to hide/show an object depending on the user
|
04.09.2022, 19:21
Hi!
how to hide/show an object depending on the logged user? Thanks Peppe
05.09.2022, 06:37
This example will hide all elements with hide-normal-user class for non-admin users.
Code: 12345 $(function() {
if (window.Globals && Globals.user != 'admin') {
$('.hide-normal-user').addClass('hide');
}
});
05.09.2022, 09:22
|
« Next Oldest | Next Newest »
|