pageRebuildFields without admin rights

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

pageRebuildFields without admin rights

Post by SkayyHH » 2022-05-17 20:13

Hi, please, does anyone know what i need to change in admin/pageRebuildFields.php file so a user can run it without admin rights?

Thanks much!

SkayyHH
Veteran Member
Posts: 425
Joined: 2015-04-27 21:18

Re: pageRebuildFields without admin rights

Post by SkayyHH » 2022-05-19 06:00

For those who also need this:

You can write in __global.php:

Code: Select all

Authentication::signInAsAdmin();
So that all users log in as admin.

Post Reply