09.06.2020, 10:58
In the new FW we can check current user by Globals.user
No need for lp in this case. It will work only in RC2 or the new 2.5.0 for SE
No need for lp in this case. It will work only in RC2 or the new 2.5.0 for SE
Code:
$(function() {
var currentuser = Globals.user
if(currentuser === 'admin'){
// do action for admin
}else if(currentuser === 'erwin'){
// do action for erwin
}
});
------------------------------
Ctrl+F5
Ctrl+F5