Skip to content

Commit

Permalink
Always hide is_tutor and user_status_in_course columns. see #1924
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed May 9, 2017
1 parent e18b651 commit 6c03b39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/user/user.php
Expand Up @@ -510,6 +510,7 @@
$table->set_header($header_nr++, get_lang('GroupSingle'), false);

$hideFields = api_get_configuration_value('hide_user_field_from_list');

if (!empty($hideFields)) {
foreach ($hideFields as $fieldToHide) {
if (isset($indexList[$fieldToHide])) {
Expand All @@ -518,6 +519,9 @@
}
}

$table->setHideColumn('is_tutor');
$table->setHideColumn('user_status_in_course');

if (api_is_allowed_to_edit(null, true)) {
$table->set_header($header_nr++, get_lang('Status'), false);
$table->set_header($header_nr++, get_lang('Active'), false);
Expand Down

0 comments on commit 6c03b39

Please sign in to comment.