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.

User Profile
#4
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

Code:
$(function() {   
      var currentuser = Globals.user
      if(currentuser === 'admin'){
       // do action for admin
      }else if(currentuser === 'erwin'){
       // do action for erwin
      }
});
------------------------------
Ctrl+F5
Reply


Messages In This Thread
User Profile - by sjfp - 09.06.2020, 09:51
RE: User Profile - by Erwin van der Zwart - 09.06.2020, 10:25
RE: User Profile - by sjfp - 09.06.2020, 10:34
RE: User Profile - by Daniel - 09.06.2020, 10:58
RE: User Profile - by Erwin van der Zwart - 09.06.2020, 12:27
RE: User Profile - by sjfp - 09.06.2020, 13:16
RE: User Profile - by Daniel - 09.06.2020, 13:19
RE: User Profile - by admin - 09.06.2020, 13:23
RE: User Profile - by sjfp - 09.06.2020, 13:33
RE: User Profile - by toujour - 13.08.2020, 13:07
RE: User Profile - by Daniel - 13.08.2020, 13:09
RE: User Profile - by toujour - 13.08.2020, 13:18

Forum Jump: