mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11103] Notifications for subscriptions/bookmarks must obey ACP options
If bookmarks/subscriptions are disabled, they should not be listed in the UCP PHPBB3-11103
This commit is contained in:
parent
94d682f774
commit
de7e17b732
4 changed files with 32 additions and 0 deletions
|
@ -41,6 +41,14 @@ class phpbb_notification_type_bookmark extends phpbb_notification_type_post
|
|||
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||
);
|
||||
|
||||
/**
|
||||
* Is available
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return $this->config['allow_bookmarks'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the users who want to receive notifications
|
||||
*
|
||||
|
|
|
@ -41,6 +41,14 @@ class phpbb_notification_type_post extends phpbb_notification_type_base
|
|||
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||
);
|
||||
|
||||
/**
|
||||
* Is available
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return $this->config['allow_topic_notify'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the id of the item
|
||||
*
|
||||
|
|
|
@ -48,6 +48,14 @@ class phpbb_notification_type_quote extends phpbb_notification_type_post
|
|||
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||
);
|
||||
|
||||
/**
|
||||
* Is available
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the users who want to receive notifications
|
||||
*
|
||||
|
|
|
@ -41,6 +41,14 @@ class phpbb_notification_type_topic extends phpbb_notification_type_base
|
|||
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||
);
|
||||
|
||||
/**
|
||||
* Is available
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return $this->config['allow_forum_notify'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the id of the item
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue