Add confirm unsubscribe page
[MAILPOET-2736]
This commit is contained in:
committed by
Veljko V
parent
63600e27ac
commit
66f2308e41
@ -12,12 +12,14 @@ class Subscription {
|
||||
const ACTION_CONFIRM = 'confirm';
|
||||
const ACTION_MANAGE = 'manage';
|
||||
const ACTION_UNSUBSCRIBE = 'unsubscribe';
|
||||
const ACTION_CONFIRM_UNSUBSCRIBE = 'confirmUnsubscribe';
|
||||
public $allowedActions = [
|
||||
self::ACTION_CAPTCHA,
|
||||
self::ACTION_CAPTCHA_IMAGE,
|
||||
self::ACTION_CONFIRM,
|
||||
self::ACTION_MANAGE,
|
||||
self::ACTION_UNSUBSCRIBE,
|
||||
self::ACTION_CONFIRM_UNSUBSCRIBE,
|
||||
];
|
||||
public $permissions = [
|
||||
'global' => AccessControl::NO_ACCESS_RESTRICTION,
|
||||
@ -47,6 +49,10 @@ class Subscription {
|
||||
$subscription->confirm();
|
||||
}
|
||||
|
||||
public function confirmUnsubscribe($data) {
|
||||
$this->initSubscriptionPage(UserSubscription\Pages::ACTION_CONFIRM_UNSUBSCRIBE, $data);
|
||||
}
|
||||
|
||||
public function manage($data) {
|
||||
$this->initSubscriptionPage(UserSubscription\Pages::ACTION_MANAGE, $data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user