1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 12:33:29 +01:00

[ticket/11103] PM notifications are not available if users cannot read them

PHPBB3-11103
This commit is contained in:
Nathan Guse 2012-10-20 21:26:39 -05:00
parent de7e17b732
commit f62e55091a

View File

@ -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
*