Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Contact Permissions

Security covered Under active development 216 sites

Part of the Contact ecosystem · 27 projects

This module enhances Drupal's core contact functionality by adding permissions to control who can have a personal contact form. It allows administrators to fine-tune role-based access to personal contact forms.

Provides further permissions to control how core's contact module behaves.

Permissions added:

  • "Have a personal contact form" which allows administrators to configure which roles get the ability to have a "Personal contact form".
  • Only on Drupal 8: Use ROLE's personal contact forms

Suggestions as to what other permissions would be useful are welcome.

How to use it

Simply install it like any other module, and under 'admin/user/permissions', configure what roles should be able to 'Have a personal contact form'.

How it works

The module does two things to every role which does NOT have the permission assigned:

  • Removes the option from its user edit page to activate his/her personal contact form, through hook_form_alter.
  • Removes access from anyone to see his/her user/%uid/contact by taking over the access callback for those pages.
  • Note that core's access callback is executed before our checks, and only if there is access granted by core, we run our checks.

Only since Drupal 8:
Configure access to personal contact forms per role. The permissions respects core's 'access user contact forms' permission, so that:

  • A user has 'access user contact forms': the user can access anyone's personal contact forms.
  • A user does not have 'access user contact forms', but has 'access RID contact forms' : the user can only access contact forms for users that have the specified role.

Buy the author a coffee to keep him motivated.

Ported to Drupal 7 thanks to pcambra.

Drupal 9–11

Ask your assistant about Contact Permissions

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • contact Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Dec 2023
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.1 Stable 9–11 Jul 1, 2026
3.0.0 Stable 9–10 Dec 16, 2023
3.0.x-dev Dev 9–11 Dec 12, 2023