Blog · 03/02/2021

PrestaShop 1.7.7: access denied in the control panel

PrestaShop 1.7.7: access denied in the control panel

If after updating to the latest version of PrestaShop 1.7.7 you’ve found that has no permissions in the Management Panel, here’s a very simple solution.

When in the Control Panel you indicate that you have Disabled Access means that your user does not have the necessary permissions included in his Profile.

PrestaShop has different profiles, among which is the Administrator profile.

The solution is focused on solving the problem with a administrator account, but it can be extrapolated to any profile.

by PrestaShop 1.7.7
Rejected access after updating to the latest version of PrestaShop

In that case, what we must do is to re-include all permits to the corresponding profile, for this we will access the database.

It is highly recommended make a backup of , at least of the table ps_access which will be modified after following this tutorial.

by phpMyAdmin

To start, we clean up all the permissions saved in the table ps_access with the following sentence:

TRUNCATE TABLE nombre_tabla;

After cleaning the table ps_access we must again fill it this time adding all the permissions available to the administrator profile , which corresponds to id_profile=1 .

For this, we execute the following sentence Mysql:

INSERT INTO ps_access (
    id_profile, 
    id_authorization_role
)
SELECT
	'1' as 'id_profile'
    id_authorization_role,

FROM
ps_authorization_role

What it does is to add all types of authorization of the table ps_authorization_role to the table ps_access indicating the id_profile=1

id_profile=1 represents the administrator profile, although we can change the value by the profile we want.

Default values of the table ps_authorization_role

After the steps followed, you will have to get permits on the Control Panel again, so you will already be able to enjoy your PrestaShop again.

PrestaShop Control Panel after performing the steps described

If you want more information about this solution, you can visit the following blog: Refused Access - General Discussions - PrestaShop Forums

Have you been helpful the steps described?, if you have any better solution comment it so that we can all know it.