Skip to content
Snippets Groups Projects
Commit 2882393b authored by Georg Ringer's avatar Georg Ringer Committed by Wouter Wolters
Browse files

[BUGFIX] Hide report notice in about module for editors

Editors are not allowed to see the reports module, therefore the link
'Please check the status report for more information' does not work.
Furthermore those users can't change anything which is reported, so
don't show this information at all.

Displaying less warnings which can not be changed improve the usability.

Change-Id: I552b34f4bc1e249c51abc166699597b1678a61f9
Resolves: #72084
Releases: master
Reviewed-on: https://review.typo3.org/45168


Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Reviewed-by: default avatarJosef Glatz <josef.glatz@typo3.org>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.org>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent 3276f07f
Branches
Tags
No related merge requests found
......@@ -29,6 +29,9 @@ class WarningMessagePostProcessor
*/
public function displayWarningMessages_postProcess(array &$warningMessages)
{
if (!$GLOBALS['BE_USER']->isAdmin()) {
return;
}
// Get highest severity
$registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Registry::class);
$highestSeverity = $registry->get('tx_reports', 'status.highestSeverity', null);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment