Skip to content

Commit

Permalink
Debug: load clockwork frontend only if admin user is logged in. (#3622)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloep committed May 14, 2020
1 parent bcbaf8b commit 2ddf32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redaxo/src/addons/debug/boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
return;
}

if (rex::isBackend() && 'debug' === rex_request::get('page')) {
if (rex::isBackend() && 'debug' === rex_request::get('page') && rex::getUser() && rex::getUser()->isAdmin()) {
$index = file_get_contents(rex_addon::get('debug')->getAssetsPath('clockwork/index.html'));

$editor = rex_editor::factory();
Expand Down

0 comments on commit 2ddf32a

Please sign in to comment.