Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 */
24
 */
Línea 25... Línea 25...
25
 
25
 
Línea 26... Línea 26...
26
defined('MOODLE_INTERNAL') || die();
26
defined('MOODLE_INTERNAL') || die();
-
 
27
 
-
 
28
$capabilities = ['qbank/customfields:configurecustomfields'];
27
 
29
 
28
if ($hassiteconfig) {
30
if ($hassiteconfig || has_any_capability($capabilities, core\context\system::instance())) {
29
    // Settings for question custom fields.
31
    // Settings for question custom fields.
30
    $settings = null;
32
    $settings = null;
31
    $ADMIN->add('qbanksettings',
33
    $ADMIN->add('qbanksettings',