Access Admin Area
Access Admin Area
I am trying to figure out how the admin area works. Should all users in "admins" group have access to the admin area? I can only get to the admin area with the initial admin account i created. Is it possible to allow other users into the admin area? Sorry if this has already been answered somewhere. i did look first.
Re: Access Admin Area
Only one SUPER admin allowed.
We already asked Ahmad to add at least another super admin.
We already asked Ahmad to add at least another super admin.
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper
Re: Access Admin Area
Definitely would like to see this one sooner than later. Have a pretty complex system that could benefit from this.
BR,
Josh
BR,
Josh
Re: Access Admin Area
Hi all,
as a temporary fix you can modify the admin/incFunctions.php file and change in the getLoggedAdmin function the following. This will allow ALL users of the admin group to access the admin area.
Please not, that the change will be overwritten each time you will regenerate your application.
as a temporary fix you can modify the admin/incFunctions.php file and change in the getLoggedAdmin function the following. This will allow ALL users of the admin group to access the admin area.
Code: Select all
// }elseif($_SESSION['memberID']==$adminConfig['adminUsername']){
}elseif($_SESSION['memberGroupID']==2){
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Access Admin Area
Thanks pböttcher, I did try this but it removed the admin button all together?
Re: Access Admin Area
for ver. AppGini 5.91
Edit file /admin/incFunctions.php function getMemberInfo($memberID = '') {
//'admin' => ($adminConfig['adminUsername'] == $memberID ? true : false),
'admin' => ($row['groupID'] == 2 ? true : false),
Many thanks for solution to my colleague Greg
Edit file /admin/incFunctions.php function getMemberInfo($memberID = '') {
//'admin' => ($adminConfig['adminUsername'] == $memberID ? true : false),
'admin' => ($row['groupID'] == 2 ? true : false),
Many thanks for solution to my colleague Greg
ver 23.15 1484
Re: Access Admin Area
That is great. Thanks fbrano and to your colleague Greg.
I suggest that you check this blog post, which explains a method of modifying AppGini-generated files in a more maintainable manner: https://bigprof.com/blog/appgini/custom ... dmin-area/. You will have the problem of having to keep making this change after every time you generate your project. I have this in place for getLoggedAdmin but this is a different function. I don't know if I will need to change or supplement with a second function replace.
I have tried a couple of times to go to 5.9x and have given up, will wait for another patch.
~Paul
I suggest that you check this blog post, which explains a method of modifying AppGini-generated files in a more maintainable manner: https://bigprof.com/blog/appgini/custom ... dmin-area/. You will have the problem of having to keep making this change after every time you generate your project. I have this in place for getLoggedAdmin but this is a different function. I don't know if I will need to change or supplement with a second function replace.
I have tried a couple of times to go to 5.9x and have given up, will wait for another patch.
~Paul
Re: Access Admin Area
I know that blog, also tested it several times on 5.8x versions, but with no success.
ver 23.15 1484