mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11103] PM notifications are not available if users cannot read them
PHPBB3-11103
This commit is contained in:
parent
de7e17b732
commit
f62e55091a
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue