Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[JavaScript] User's access level Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

[JavaScript] User's access level

Unread post by toms »

Hi,

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

#nu_access_level# doesn't exist anymore.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: [JavaScript] User's access level

Unread post by admin »

toms,

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

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: [JavaScript] User's access level

Unread post by toms »

Thanks!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: [JavaScript] User's access level

Unread post by admin »

.
pyro
Posts: 11
Joined: Wed Jan 17, 2018 7:06 pm

Re: [JavaScript] User's access level

Unread post 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
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: [JavaScript] User's access level

Unread post by admin »

pyro,

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

Steven
Post Reply