mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 16:05:00 +02: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
@ -41,6 +41,14 @@ class phpbb_notification_type_bookmark extends phpbb_notification_type_post
|
|||||||
'group' => 'NOTIFICATION_GROUP_POSTING',
|
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is available
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
return $this->config['allow_bookmarks'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the users who want to receive notifications
|
* 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',
|
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is available
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
return $this->config['allow_topic_notify'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the id of the item
|
* Get the id of the item
|
||||||
*
|
*
|
||||||
|
@ -48,6 +48,14 @@ class phpbb_notification_type_quote extends phpbb_notification_type_post
|
|||||||
'group' => 'NOTIFICATION_GROUP_POSTING',
|
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is available
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the users who want to receive notifications
|
* 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',
|
'group' => 'NOTIFICATION_GROUP_POSTING',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is available
|
||||||
|
*/
|
||||||
|
public function is_available()
|
||||||
|
{
|
||||||
|
return $this->config['allow_forum_notify'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the id of the item
|
* Get the id of the item
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user