[JavaScript] User's access level

[JavaScript] User's access level

Postby toms » Sat Jan 13, 2018 6:17 am

Hi,

How can I retrieve the user's access level in JavaScript?

#nu_access_level# doesn't exist anymore.
toms
 
Posts: 139
Joined: Wed Nov 08, 2017 8:57 pm

Re: [JavaScript] User's access level

Postby admin » Sat Jan 13, 2018 7:26 am

toms,

Here you go, I just added this nuAccessLevelCode()... http://wiki.nubuilder.net/nubuilderforte/index.php/Javascript#nuAccessLevelCode

Steven
admin
Site Admin
 
Posts: 2053
Joined: Mon Jun 15, 2009 9:53 am

Re: [JavaScript] User's access level

Postby toms » Sun Jan 14, 2018 7:39 pm

Thanks!
toms
 
Posts: 139
Joined: Wed Nov 08, 2017 8:57 pm

Re: [JavaScript] User's access level

Postby admin » Mon Jan 15, 2018 2:04 am

.
admin
Site Admin
 
Posts: 2053
Joined: Mon Jun 15, 2009 9:53 am

Re: [JavaScript] User's access level

Postby pyro » Sat Jan 20, 2018 1:28 am

Hi,

Superuser: console.log(nuAccessLevelCode()); -> ""
User: console.log(nuAccessLevelCode()); -> Null

when I use the Superuser i get the expected result, however if I use one of my users accounts I just get Null instead of the AcessLevelCode.

Any Idea why I do not get the expected result?

Thank you
Moritz
pyro
 
Posts: 11
Joined: Thu Jan 18, 2018 3:36 am

Re: [JavaScript] User's access level

Postby admin » Sat Jan 20, 2018 3:21 am

pyro,

It was a bug - the fix is now on Github.

Steven
admin
Site Admin
 
Posts: 2053
Joined: Mon Jun 15, 2009 9:53 am


Return to General