Because people with this permission administer both the site-wide and personal contact forms, we should rename this permission to 'administer contact forms' to make it less specific.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
FileSize
7.62 KB

Patch attached for review.

gpk’s picture

Status: Needs review » Needs work

A patch :) yay! :)

Marked #573510: Usability: contact module permissions need clarifying as duplicate.

On reflection, now that the contact settings page has gone (#570142: Get rid of the admin/structure/contact/settings page), this means that you need 'administer users' permission to get to the contact_default_status checkbox for users' contact forms. So actually, the current 'administer site-wide contact form' is accurate I think? [Update: depends on whether this permission is also used to turn off flood control checking on users' personal contact forms.. see bottom para below.]

Also: per the other issue, the description for the 'access site-wide contact form' permission is a bit wide of the mark. Currently it says

'Send feedback to administrators via e-mail using the site-wide contact form.'

I'd suggest

'Send e-mails to administrator-defined recipients using the site-wide contact form.'

Finally, just to note that 'administer users' permission lets you control the contact_default_status checkbox and access a user's personal contact form whether or not they have enabled it; however you need 'administer site-wide contact form' permission to be freed of the flood control limit for the form. I'm in two minds as to whether this should also be 'administer users' permission.

Dave Reid’s picture

@gpk Yeah sorry, I should have posted in that existing issue. You make some good points and I pretty much agree. I'll re-roll with some changes today.

Dave Reid’s picture

Status: Needs work » Needs review
FileSize
7.84 KB

Yeah because users with the adminster contact forms permission would be able to access a flood-controlled contact form (including the personal contact forms), we should rename the permission. Plus this helps future-proof the permission incase we add more settings at some point in the future.

Summary of revised patch:
1. Rename 'administer site-wide contact form' permission to 'administer contact forms'.
2. Improved the descriptions for all current contact permissions

Dries’s picture

Status: Needs review » Fixed

Looks good to me. Committed to CVS HEAD.

gpk’s picture

Status: Fixed » Needs work

Minor comment cleanup/followup: we have a (great) double typo:

+      'description' => t('Send e-mails to administer-defiend recipients using the site-wide contact form.'),

Also I reckon that admins with 'administer users' permission but without 'administer contact forms' permission should not be subject to the flood constraints, since administering users is precisely the sort of activity that might require sending messages to users via their contact form.

Dave Reid’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
1.04 KB

@gpk: Good find. Let's make a new issue for the administer users to pass flood control plz since it will add some tests. Marking this as RTBC since it just fixes spelling errors. I double checked and nothing else is misspelled in contact.module.

gpk’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
1.04 KB

Try this one ;) ;)

Dave Reid’s picture

Status: Needs review » Reviewed & tested by the community

Jeez. Yep, looks good.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.