extcode / cart

Cart is a small but powerful extension which "solely" adds a shopping cart to your TYPO3 installation. The extension allows you to create coupons, products with or without variants, special prices.
GNU General Public License v2.0
57 stars 51 forks source link

[BUGFIX] Fix module access #536

Closed johfeu closed 5 months ago

johfeu commented 5 months ago

535

rintisch commented 5 months ago

@johfeu Thanks for the contribution. I tested it but it's unfortunately not working for me this way.

For cart_cart_main you set 'access' => ''. In my opinion it needs to be 'access' => 'user'. Or do I miss something?

johfeu commented 5 months ago

@rintisch how does it behave for you? My observation is: if i set 'access' => 'user' for cart_cart_main as well, then i have to explicitly grant access to the main module. If i leave it empty, it will only display the main, if the submdule is accessible. On a first view, i was not able to find the logic in the core. I just replicated how the core and other extension are doing it:

e.g. filelist in core filelist module with 'user' https://github.com/TYPO3/typo3/blob/main/typo3/sysext/filelist/Configuration/Backend/Modules.php parent without access in https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Configuration/Backend/Modules.php

Or another community extension https://github.com/cobwebch/external_import/blob/master/Configuration/Backend/Modules.php

rintisch commented 5 months ago

Thanks for ll the information. I did not know this, I just used your link from the docs as point of truth and there an empty value is not named. Your latest comment is convincing with all the examples :)