From f62e55091aac6aa62c56dde172f2f2bb0371f7fd Mon Sep 17 00:00:00 2001 From: Nathan Guse Date: Sat, 20 Oct 2012 21:26:39 -0500 Subject: [PATCH] [ticket/11103] PM notifications are not available if users cannot read them PHPBB3-11103 --- phpBB/includes/notification/type/pm.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpBB/includes/notification/type/pm.php b/phpBB/includes/notification/type/pm.php index adb03ab1a3..697feca962 100644 --- a/phpBB/includes/notification/type/pm.php +++ b/phpBB/includes/notification/type/pm.php @@ -33,6 +33,14 @@ class phpbb_notification_type_pm extends phpbb_notification_type_base 'lang' => 'NOTIFICATION_TYPE_PM', ); + /** + * Is available + */ + public function is_available() + { + return ($this->config['allow_privmsg'] && $this->auth->acl_get('u_readpm')); + } + /** * Get the id of the *