Access Admin Area

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
NiKofTime
Posts: 6
Joined: 2014-05-02 19:59

Access Admin Area

Post by NiKofTime » 2014-06-03 20:40

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.

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: Access Admin Area

Post by AhmedBR » 2014-06-03 22:57

Only one SUPER admin allowed.
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

NiKofTime
Posts: 6
Joined: 2014-05-02 19:59

Re: Access Admin Area

Post by NiKofTime » 2014-06-04 15:12

Thank you.

jyork03
Posts: 3
Joined: 2014-05-23 22:28

Re: Access Admin Area

Post by jyork03 » 2014-06-20 19:56

Definitely would like to see this one sooner than later. Have a pretty complex system that could benefit from this.

BR,
Josh

User avatar
fbrano
Veteran Member
Posts: 70
Joined: 2018-03-19 10:39
Location: Slovakia
Contact:

Re: Access Admin Area

Post by fbrano » 2018-08-21 07:51

Any news in adding another SUPER admin?
ver 23.15 1484

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Access Admin Area

Post by pbottcher » 2018-08-21 10:38

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.
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.

bescott53

Re: Access Admin Area

Post by bescott53 » 2018-10-05 10:25

Thanks pböttcher, I did try this but it removed the admin button all together?

bescott53

Re: Access Admin Area

Post by bescott53 » 2018-10-05 10:26

ignore me it works!

User avatar
fbrano
Veteran Member
Posts: 70
Joined: 2018-03-19 10:39
Location: Slovakia
Contact:

Re: Access Admin Area

Post by fbrano » 2020-12-07 19:43

Why pböttcher's solution does not work on ver. 5.91?
ver 23.15 1484

User avatar
fbrano
Veteran Member
Posts: 70
Joined: 2018-03-19 10:39
Location: Slovakia
Contact:

Re: Access Admin Area

Post by fbrano » 2020-12-10 06:30

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
ver 23.15 1484

pfrumkin
Veteran Member
Posts: 157
Joined: 2020-02-18 17:58
Location: Albuquerque, New Mexico USA

Re: Access Admin Area

Post by pfrumkin » 2020-12-10 18:22

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

User avatar
fbrano
Veteran Member
Posts: 70
Joined: 2018-03-19 10:39
Location: Slovakia
Contact:

Re: Access Admin Area

Post by fbrano » 2020-12-11 11:33

I know that blog, also tested it several times on 5.8x versions, but with no success.
ver 23.15 1484

Post Reply