05.09.2022, 06:37
This example will hide all elements with hide-normal-user class for non-admin users.
Code:
$(function() {
if (window.Globals && Globals.user != 'admin') {
$('.hide-normal-user').addClass('hide');
}
});