Page 1 of 1

[JavaScript] User's access level

Posted: Fri Jan 12, 2018 9:47 pm
by toms
Hi,

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

#nu_access_level# doesn't exist anymore.

Re: [JavaScript] User's access level

Posted: Fri Jan 12, 2018 10:56 pm
by admin
toms,

Here you go, I just added this nuAccessLevelCode()... http://wiki.nubuilder.net/nubuilderfort ... sLevelCode

Steven

Re: [JavaScript] User's access level

Posted: Sun Jan 14, 2018 11:09 am
by toms
Thanks!

Re: [JavaScript] User's access level

Posted: Sun Jan 14, 2018 5:34 pm
by admin
.

Re: [JavaScript] User's access level

Posted: Fri Jan 19, 2018 4:58 pm
by pyro
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

Re: [JavaScript] User's access level

Posted: Fri Jan 19, 2018 6:51 pm
by admin
pyro,

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

Steven