Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
01f57f19
Commit
01f57f19
authored
Nov 25, 2016
by
Scott
Committed by
GitHub
Nov 25, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #469 from pupi1985/patch-81
Fix users being unable to see all their own profile fields
parents
e0e124c4
d874c222
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
qa-lang-users.php
qa-include/lang/qa-lang-users.php
+4
-4
user-profile.php
qa-include/pages/user-profile.php
+1
-1
No files found.
qa-include/lang/qa-lang-users.php
View file @
01f57f19
...
...
@@ -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'
,
...
...
qa-include/pages/user-profile.php
View file @
01f57f19
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment