mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-29895 core: removed require_login() when not needed
This commit is contained in:
parent
6e2e63457e
commit
458453cee0
46 changed files with 2 additions and 93 deletions
|
@ -31,7 +31,6 @@ require_once($CFG->libdir . '/adminlib.php');
|
|||
require_once($CFG->libdir . '/tablelib.php');
|
||||
|
||||
// Check permissions.
|
||||
require_login();
|
||||
$systemcontext = context_system::instance();
|
||||
require_capability('moodle/question:config', $systemcontext);
|
||||
$canviewreports = has_capability('report/questioninstances:view', $systemcontext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue