[ticket/11103] Reported pm notifications require m_report permissions

PHPBB3-11103
This commit is contained in:
Nathaniel Guse 2012-10-13 17:06:01 -05:00
parent 94a3dc5ff7
commit 4392054044

View file

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