Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Contact Permissions

213 sites Security covered Drupal 9–11

Part of the Contact ecosystem · 27 projects

View on drupal.org

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.

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
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core 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