Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
77db60b4
Commit
77db60b4
authored
Nov 28, 2007
by
Nigel McNie
Browse files
Prevent viewing of deleted user's profiles.
parent
4eb093fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/user/view.php
View file @
77db60b4
...
@@ -69,7 +69,7 @@ EOF;
...
@@ -69,7 +69,7 @@ EOF;
$profile
=
array
();
$profile
=
array
();
$userfields
=
array
();
$userfields
=
array
();
if
(
!
$user
=
get_record
(
'usr'
,
'id'
,
$userid
))
{
if
(
!
$user
=
get_record
(
'usr'
,
'id'
,
$userid
,
'deleted'
,
0
))
{
throw
new
UserNotFoundException
(
"User with id
$userid
not found"
);
throw
new
UserNotFoundException
(
"User with id
$userid
not found"
);
}
}
$is_friend
=
is_friend
(
$userid
,
$loggedinid
);
$is_friend
=
is_friend
(
$userid
,
$loggedinid
);
...
...
Write
Preview
Supports
Markdown
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