From a8360ea7c98250bd9a35bbefa64e2e9ce38e532f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu> Date: Wed, 16 Jan 2008 12:46:52 +0000 Subject: [PATCH] #189785 by dropcube: anonymous users did not have permission to view the personal contact form, so catch them early --- modules/contact/contact.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contact/contact.module b/modules/contact/contact.module index e63bcd8465bd..5a51385cd79b 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -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') -- GitLab