Jump to content

Prestashop 1.7.4.4 can't see my module


Recommended Posts

  • 6 months later...

I've been at Prestashop for about a month now, and it took me three days to figure this out - I _THINK_ it's because somewhere along the Upload process an entry gets created in the `authorization_role` table followed by the `access` table.   Without these entries the Back Office TABS and/or MODULES you place in the directory cannot be seen. 

For 'MyCustomBackEndModule', I had to add via SQL INSERT to the `authorization_role` table:

ROLE_MOD_MODULE_MYBACKENDCONTROLLER_DELETE

ROLE_MOD_MODULE_MYBACKENDCONTROLLER_READ

ROLE_MOD_MODULE_MYBACKENDCONTROLLER_UPDATE

ROLE_MOD_MODULE_MYBACKENDCONTROLLER_CREATE

And because I had a TAB installed, I also had to add 

ROLE_MOD_TAB_MYBACKENDCONTROLLER_DELETE

ROLE_MOD_TAB_MYBACKENDCONTROLLER_READ

ROLE_MOD_TAB_MYBACKENDCONTROLLER_UPDATE

ROLE_MOD_TAB_MYBACKENDCONTROLLER_CREATE

Then I took the IDs that were generated from these commands above and also had to find the proper profile id for the administrator ( probably 1 ) and SQL INSERT them into the `access` table.

Of course, all of the permissions are dependent on what kind of access you want.  Administrator should probably have all the access, but if your module has a front end editing component, you may want to limit the `access` for other profile ids

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...