mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-11 04:06:31 +02:00
[ticket/11103] Global moderators with m_approve permission never need approval
They do not need to receive notifications if their post/topic is approved or disapproved PHPBB3-11103
This commit is contained in:
@ -57,6 +57,14 @@ class phpbb_notification_type_approve_post extends phpbb_notification_type_post
|
||||
return 'approve_post';
|
||||
}
|
||||
|
||||
/**
|
||||
* Is available
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return !$this->auth->acl_get('m_approve');
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the users who want to receive notifications
|
||||
*
|
||||
|
@ -57,6 +57,14 @@ class phpbb_notification_type_approve_topic extends phpbb_notification_type_topi
|
||||
return 'approve_topic';
|
||||
}
|
||||
|
||||
/**
|
||||
* Is available
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return !$this->auth->acl_get('m_approve');
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the users who want to receive notifications
|
||||
*
|
||||
|
Reference in New Issue
Block a user