Moodle

user address is always hidden

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3
  • Fix Version/s: None
  • Component/s: Administration
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE

Description

The field 'address' doesn't appear in the list of the potential hidden fields (setting 'hiddenuserfields'). Why?
However it is usually the main personal information to hide from other non-authorized users (other than course teachers/admins) for increasing student privacy.

Here is a obvious patch, tested with 1.8.2:
— MOODLE_0709/admin/settings/users.php 2007-03-28 18:57:05.000000000 +0200
+++ MOODLE_0706/admin/settings/users.php 2007-10-31 11:01:54.000000000 +0100
@@ -82,6 +82,7 @@
get_string('confighiddenuserfields', 'admin'), array(),
array('none' => get_string('none'),
'description' => get_string('description'),
+ 'address' => get_string('address'),
'city' => get_string('city'),
'country' => get_string('country'),
'webpage' => get_string('webpage'),

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

ah, the reason is that the address and phone numbers are hidden always:
if (has_capability('moodle/user:viewhiddendetails', $coursecontext)) {
if ($user->address) { print_row(get_string("address").":", "$user->address"); }
if ($user->phone1) { print_row(get_string("phone").":", "$user->phone1"); }
if ($user->phone2) { print_row(get_string("phone2").":", "$user->phone2"); }
}

I think this could be made configurable in 2.0

Show
Petr Škoda (skodak) added a comment - ah, the reason is that the address and phone numbers are hidden always: if (has_capability('moodle/user:viewhiddendetails', $coursecontext)) { if ($user->address) { print_row(get_string("address").":", "$user->address"); } if ($user->phone1) { print_row(get_string("phone").":", "$user->phone1"); } if ($user->phone2) { print_row(get_string("phone2").":", "$user->phone2"); } } I think this could be made configurable in 2.0
Hide
Arnaud saint-Georges added a comment -

Oui, this should be configurable because some staff (managers, etc.) are sometimes authorized to know postal address, phone, etc. (e.g. for postal mailing).

Show
Arnaud saint-Georges added a comment - Oui, this should be configurable because some staff (managers, etc.) are sometimes authorized to know postal address, phone, etc. (e.g. for postal mailing).
Hide
Petr Škoda (skodak) added a comment -

why not give managers moodle/user:viewhiddendetails ?

Show
Petr Škoda (skodak) added a comment - why not give managers moodle/user:viewhiddendetails ?
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Dates

  • Created:
    Updated:
    Resolved: