mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-29 02:29:21 +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:
parent
397d039ce5
commit
c60b15294a
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user