Merge branch 'MDL-87329-main' of https://github.com/jleyva/moodle

This commit is contained in:
Huong Nguyen
2025-12-12 09:43:37 +07:00
+3 -4
View File
@@ -28,11 +28,10 @@ defined('MOODLE_INTERNAL') || die();
use core_admin\local\settings\autocomplete;
if ($hassiteconfig) {
if ($hassiteconfig || has_capability('moodle/site:configview', context_system::instance())) {
// We should wait to the installation to finish since we depend on some configuration values that are set once
// the admin user profile is configured.
if (!during_initial_install()) {
if ($hassiteconfig && !during_initial_install()) {
$enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
$enablemobiledoclink = html_writer::link($enablemobiledocurl, new lang_string('documentation'));
$default = is_https() ? 1 : 0;
@@ -78,7 +77,7 @@ if ($hassiteconfig) {
'mobileappsubscription',
new lang_string('mobileappsubscription', 'tool_mobile'),
"$CFG->wwwroot/$CFG->admin/tool/mobile/subscription.php",
'moodle/site:config',
'moodle/site:configview',
$hideappsubscription
)
);