New option clearCache.system does not show up
With #54991 a new system cache was introduced, along with a new TSconfig property, called
options.clearCache.system. However setting this option to true does not work if the user does not also have either
options.clearCache.all set to true too.
This is because the
\TYPO3\CMS\Backend\Toolbar\ClearCacheToolbarItem does not add the "system" options to the list of values to check for granting access.
[BUGFIX] clearCache.system does not show up
New TSconfig option clearCache.system does not work as expected
because class \TYPO3\CMS\Backend\Toolbar\ClearCacheToolbarItem
wrongly checks access to that option. Thus if only clearCache.system
is set the clear cache menu does not show up at all.
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Kay Strobach
Tested-by: Kay Strobach
Reviewed-by: Francois Suter
Tested-by: Francois Suter
#2 Updated by Francois Suter almost 6 years ago
Steps to reproduce:
- take an non-admin user and
options.clearCache.system = 1to its TSconfig, taking care that there are no other "clearCache" options set
- switch to that user => the clear cache menu does not show up
- apply the patch => the menu shows up