Welcome to the nuBuilder Forums!

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

developer|admin user

Questions related to using nuBuilder Forte.
Post Reply
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

developer|admin user

Unread post by shuray »

Hi!
Is there a way to create several users who are developers (can create various objects, other users, have access to any forms), but they are different from default 'Admin' user?

Thank you
nac
Posts: 132
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 13 times

Re: developer|admin user

Unread post by nac »

Hello shuray,

Yes, there is. Go to the Settings tab on the Setup form. Look for the value '$nuConfigDBGlobeadminUsers' in the subform and enter the IDs (the values in as found in zzzzsys_user.zzzzsys_user_id for the users you wish to give admin rights). Multiple values can be separated by commas. You do not need any quotation marks.

Neil
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: developer|admin user

Unread post by shuray »

Thank you, Neil!
But there is one more question - what about access_id for that users? I have entered id of developer user to nuConfigDBGlobeadminUsers, but he still can view only UserHome page and has no access to any form
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: developer|admin user

Unread post by kev1n »

Hi shuray,

You will probably need to restart your browser in order for changes to be reflected.
nac
Posts: 132
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 13 times

Re: developer|admin user

Unread post by nac »

Hi shuray,
Sorry to be late replying (I was out all day yesterday). Were you able to follow kev1n's advice and did it fix the problem? (He is usually right!)
I am pretty sure that adding user IDs to $nuConfigDBGlobeadminUsers will override the access level that their accounts are otherwise assigned and they have full developer/admin access.
Neil
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: developer|admin user

Unread post by shuray »

Yes! You are right! after restarting the browser i have the full access
Thank you
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: developer|admin user

Unread post by kev1n »

Some changes to your preferences require you to restart your browser, which is unfortunately unavoidable. Normally, this requirement is communicated by a pop-up message that appears after you've saved the settings. However, it seems that this particular setting does not trigger the expected message notification, so I need to check this.
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: developer|admin user

Unread post by shuray »

But there is one more issue: That users have full access to forms, but cannot open "external" links: Database and FileManager. After login that links both do not work with message: "You have been logged out."

Probably we have an additional setting?

Thank you
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: developer|admin user

Unread post by kev1n »

Edit core/nuvendorlogin.php and replace this line

Code: Select all

if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] && $_extra_check == '1' ) {
with

Code: Select all

if ( $_extra_check == '1' ) {[/code
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: developer|admin user

Unread post by kev1n »

BTW, this change is now also on Github.
Post Reply