Commit a8360ea7 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#189785 by dropcube: anonymous users did not have permission to view the...

#189785 by dropcube: anonymous users did not have permission to view the personal contact form, so catch them early
parent 3a934722
......@@ -114,7 +114,7 @@ function _contact_user_tab_access($account) {
$account->contact = FALSE;
}
return
$account &&
$account && $user->uid &&
(
($user->uid != $account->uid && $account->contact) ||
user_access('administer users')
......
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