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 = ['moodle/role:assign'];
27
 
29
 
-
 
30
if ($hassiteconfig || has_any_capability($capabilities, core\context\system::instance())) {
28
if ($hassiteconfig) {
31
    $ADMIN->add('roles', new admin_externalpage('toolunsuproles', get_string('pluginname', 'tool_unsuproles'),