From dc1aa72cdbefa89bd8900199b24f32381ff100c3 Mon Sep 17 00:00:00 2001 From: Paul McCrodden Date: Fri, 12 Jun 2015 13:46:39 +0100 Subject: [PATCH] Issue: #2503949 by mccrodp: Fixed display of "Private Message Email Notifications" field on User edit form. --- message_private.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/message_private.module b/message_private.module index b082c6d..1001068 100755 --- a/message_private.module +++ b/message_private.module @@ -468,8 +468,8 @@ function message_private_message_insert($message) { * profiles, unless the user is in role with bypass access control permission. */ function message_private_form_user_profile_form_alter(&$form, &$form_state, $form_id) { - if (user_access('bypass private message access control') - || !variable_get(MESSAGE_PRIVATE_EMAIL_NOTIFICATIONS, TRUE)) { + if (!user_access('bypass private message access control') + && !variable_get(MESSAGE_PRIVATE_EMAIL_NOTIFICATIONS, TRUE)) { $form['field_private_message_notify']['#access'] = FALSE; } }