Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/Mailbox.php
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
class Mailbox extends \App\Handlers\Base | class Mailbox extends \App\Handlers\Base | ||||
{ | { | ||||
public static function entitleableClass() | public static function entitleableClass(): string | ||||
{ | { | ||||
return \App\User::class; | return \App\User::class; | ||||
} | } | ||||
public static function preReq($entitlement, $user) | public static function preReq($entitlement, $user): bool | ||||
{ | { | ||||
if (!$entitlement->sku->active) { | if (!$entitlement->sku->active) { | ||||
\Log::error("Sku not active"); | \Log::error("Sku not active"); | ||||
return false; | return false; | ||||
} | } | ||||
/* | /* | ||||
FIXME: This code prevents from creating initial mailbox SKU | FIXME: This code prevents from creating initial mailbox SKU | ||||
on signup of group account, because User::domains() | on signup of group account, because User::domains() | ||||
Show All 30 Lines |