Commit 01f57f19 by Scott Committed by GitHub

Merge pull request #469 from pupi1985/patch-81

Fix users being unable to see all their own profile fields
parents e0e124c4 d874c222
......@@ -86,10 +86,10 @@
'no_blocked_users' => 'No blocked users found',
'no_permission' => 'You do not have permission to perform this operation',
'old_password' => 'Old password:',
'only_shown_admins' => '(only shown to admins)',
'only_shown_editors' => '(only shown to editors and above)',
'only_shown_experts' => '(only shown to experts and above)',
'only_shown_moderators' => '(only shown to moderators and admins)',
'only_shown_admins' => '(only shown to you and admins)',
'only_shown_editors' => '(only shown to you, editors and above)',
'only_shown_experts' => '(only shown to you, experts and above)',
'only_shown_moderators' => '(only shown to you, moderators and admins)',
'password_changed' => 'Password changed',
'password_label' => 'Password:',
'password_min' => 'Password must be at least ^ characters',
......
......@@ -57,7 +57,7 @@
qa_db_user_rank_selectspec($identifier)
);
if (!QA_FINAL_EXTERNAL_USERS) {
if (!QA_FINAL_EXTERNAL_USERS && $handle !== qa_get_logged_in_handle()) {
foreach ($userfields as $index => $userfield) {
if ( isset($userfield['permit']) && qa_permit_value_error($userfield['permit'], $loginuserid, qa_get_logged_in_level(), qa_get_logged_in_flags()) )
unset($userfields[$index]); // don't pay attention to user fields we're not allowed to view
......
Markdown is supported
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