Page 1 of 1
developer|admin user
Posted: Sun Sep 24, 2023 4:12 pm
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
Re: developer|admin user
Posted: Mon Sep 25, 2023 12:53 am
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
Re: developer|admin user
Posted: Mon Sep 25, 2023 1:16 pm
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
Re: developer|admin user
Posted: Mon Sep 25, 2023 1:44 pm
by kev1n
Hi shuray,
You will probably need to restart your browser in order for changes to be reflected.
Re: developer|admin user
Posted: Tue Sep 26, 2023 10:11 am
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
Re: developer|admin user
Posted: Tue Sep 26, 2023 10:26 am
by shuray
Yes! You are right! after restarting the browser i have the full access
Thank you
Re: developer|admin user
Posted: Tue Sep 26, 2023 10:38 am
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.
Re: developer|admin user
Posted: Tue Sep 26, 2023 5:32 pm
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
Re: developer|admin user
Posted: Tue Sep 26, 2023 7:34 pm
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
Re: developer|admin user
Posted: Thu Sep 28, 2023 1:52 pm
by kev1n
BTW, this change is now also on Github.