MDL-29895 core: removed require_login() when not needed

This commit is contained in:
Charles YVANES 2018-09-10 10:58:11 +02:00
parent 6e2e63457e
commit 458453cee0
46 changed files with 2 additions and 93 deletions

View file

@ -33,7 +33,7 @@ $page = optional_param('page', 0, PARAM_INT);
$logreader = optional_param('logreader', '', PARAM_COMPONENT); // Reader which will be used for displaying logs.
if (empty($id)) {
require_login();
admin_externalpage_setup('reportloglive', '', null, '', array('pagelayout' => 'report'));
$context = context_system::instance();
$coursename = format_string($SITE->fullname, true, array('context' => $context));
} else {
@ -75,9 +75,7 @@ if ($page == 0 && !empty($logreader)) {
$strlivelogs = get_string('livelogs', 'report_loglive');
$strupdatesevery = get_string('updatesevery', 'moodle', $refresh);
if (empty($id)) {
admin_externalpage_setup('reportloglive', '', null, '', array('pagelayout' => 'report'));
}
$PAGE->set_url($url);
$PAGE->set_context($context);
$PAGE->set_title("$coursename: $strlivelogs ($strupdatesevery)");

View file

@ -28,7 +28,6 @@ require('../../config.php');
require_once($CFG->dirroot.'/report/performance/locallib.php');
require_once($CFG->libdir.'/adminlib.php');
require_login();
// Show detailed info about one issue only.
$issue = optional_param('issue', '', PARAM_ALPHANUMEXT);

View file

@ -29,7 +29,6 @@ require('../../config.php');
require_once($CFG->dirroot.'/report/security/locallib.php');
require_once($CFG->libdir.'/adminlib.php');
require_login();
$issue = optional_param('issue', '', PARAM_ALPHANUMEXT); // show detailed info about one issue only