Commit 49619251 authored by Son Nguyen's avatar Son Nguyen Committed by Son Nguyen
Browse files

Disable "Show online users" in "Administer institutions" if admin



This drop-down menu will be disabled if site amin unchecks
"Show online users" in "Configue site"->"General settings"

Change-Id: I5f592787bfd6392b39c582ecba93be1270f66e14
Signed-off-by: default avatarSon Nguyen <>
parent 57ad8a36
......@@ -398,6 +398,7 @@ if ($institution || $add) {
$elements['showonlineusers'] = array(
'type' => 'select',
'disabled' => get_config('showonlineuserssideblock') ? '' : 'disabled',
'title' => get_string('showonlineusers', 'admin'),
'description' => get_string('showonlineusersdescription','admin'),
'defaultvalue' => $data->showonlineusers,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment