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:
parent
de7e17b732
commit
f62e55091a
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user