Problems with permissions for user contact form
alexis - December 2, 2006 - 01:15
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | contact.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Description
Hi, older versions of Drupal allowed anonymous users to send messages to other users using the user contact form, if enabled by that user.
The latest version of Drupal 5 (beta 2) is not allowing it and I've seen on contact.module contact_menu() there's access = $user->uid for $items[] = array('path' => "user/". arg(1) ."/contact", I tried removing it, disabling and enabling the module but still not working.
How can user contact forms work for anonymous users?

#1
You would set 'access' => TRUE to allow it for all users. This should user_access('contact users') or whatever instead. Maybe a patch is in order.
#2
This bug still active in D7.x-dev..
#3
User contact forms are not available to anonymous users to help prevent spam.
There is an open issue to allow it though. Feel free to continue there.