Project

General

Profile

Bug #82510

Updated by Christian Müller over 6 years ago

As the documentation says: 

 *options.clearCache.all* 
 > This will allow a non-admin user to clear frontend and page-related caches, plus some backend-related caches (that is everything including templates). 

 With this option set to 0 (zero), which is the default value, an admin user should be able to "Flush all caches". But that's not the case. 
 Settings it to 1 allows admin and non-admin users to "Flush all caches". 

 /typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php:66 
 <pre> 
 if ($backendUser->getTSConfigVal('options.clearCache.all') || ($backendUser->isAdmin() && $backendUser->getTSConfigVal('options.clearCache.all') !== '0')) { 
 </pre> 
 Should be 
 <pre> 
 if ($backendUser->getTSConfigVal('options.clearCache.all') || $backendUser->isAdmin()) { 
 </pre> 

 /typo3/sysext/core/Classes/DataHandling/DataHandler.php:8539 
 <pre> 
 if ($this->BE_USER->getTSConfigVal('options.clearCache.all') || ($this->admin && $this->BE_USER->getTSConfigVal('options.clearCache.all') !== '0')) { 
 </pre> 
 Should be 
 <pre> 
 if ($this->BE_USER->getTSConfigVal('options.clearCache.all') || $this->admin) { 
 </pre>

Back