mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11103] Reported pm notifications require m_report permissions
PHPBB3-11103
This commit is contained in:
parent
94a3dc5ff7
commit
4392054044
1 changed files with 11 additions and 0 deletions
|
@ -74,6 +74,17 @@ class phpbb_notification_type_report_pm extends phpbb_notification_type_pm
|
||||||
return (int) $pm['report_id'];
|
return (int) $pm['report_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is available
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
$m_approve = $this->auth->acl_getf($this->permission, true);
|
||||||
|
|
||||||
|
return (!empty($m_approve));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the users who want to receive notifications
|
* Find the users who want to receive notifications
|
||||||
* (copied from post_in_queue)
|
* (copied from post_in_queue)
|
||||||
|
|
Loading…
Add table
Reference in a new issue