Page 1 of 1

Access Admin Area

Posted: 2014-06-03 20:40
by NiKofTime
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

Posted: 2014-06-03 22:57
by AhmedBR
Only one SUPER admin allowed.
We already asked Ahmad to add at least another super admin.

Re: Access Admin Area

Posted: 2014-06-04 15:12
by NiKofTime
Thank you.

Re: Access Admin Area

Posted: 2014-06-20 19:56
by jyork03
Definitely would like to see this one sooner than later. Have a pretty complex system that could benefit from this.

BR,
Josh

Re: Access Admin Area

Posted: 2018-08-21 07:51
by fbrano
Any news in adding another SUPER admin?

Re: Access Admin Area

Posted: 2018-08-21 10:38
by pbottcher
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.

Code: Select all

//			}elseif($_SESSION['memberID']==$adminConfig['adminUsername']){
			}elseif($_SESSION['memberGroupID']==2){
Please not, that the change will be overwritten each time you will regenerate your application.

Re: Access Admin Area

Posted: 2018-10-05 10:25
by bescott53
Thanks pböttcher, I did try this but it removed the admin button all together?

Re: Access Admin Area

Posted: 2018-10-05 10:26
by bescott53
ignore me it works!

Re: Access Admin Area

Posted: 2020-12-07 19:43
by fbrano
Why pböttcher's solution does not work on ver. 5.91?

Re: Access Admin Area

Posted: 2020-12-10 06:30
by fbrano
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

Re: Access Admin Area

Posted: 2020-12-10 18:22
by pfrumkin
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

Re: Access Admin Area

Posted: 2020-12-11 11:33
by fbrano
I know that blog, also tested it several times on 5.8x versions, but with no success.