Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Only check our permissions if core's permissions return false.
Redirect to user login page and set appropiate message if annonyous users try to use personal contact pages. This is necessary because core does not allow annonymous to use personal contact forms.