Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/Groupware.php
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
class Groupware extends \App\Handlers\Base | class Groupware extends \App\Handlers\Base | ||||
{ | { | ||||
/** | |||||
* The entitleable class for this handler. | |||||
* | |||||
* @return string | |||||
*/ | |||||
public static function entitleableClass(): string | public static function entitleableClass(): string | ||||
{ | { | ||||
return \App\User::class; | return \App\User::class; | ||||
} | } | ||||
public static function preReq($entitlement, $user): bool | |||||
{ | |||||
if (!$entitlement->sku->active) { | |||||
\Log::error("Sku not active"); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
/** | /** | ||||
* The priority that specifies the order of SKUs in UI. | * The priority that specifies the order of SKUs in UI. | ||||
* Higher number means higher on the list. | * Higher number means higher on the list. | ||||
* | * | ||||
* @return int | * @return int | ||||
*/ | */ | ||||
public static function priority(): int | public static function priority(): int | ||||
{ | { | ||||
return 80; | return 80; | ||||
} | } | ||||
} | } |