23 lines
530 B
PHP
23 lines
530 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Policies\Backend;
|
|
|
|
use App\Models\Customer;
|
|
use App\Models\User;
|
|
|
|
class EmployeePolicy
|
|
{
|
|
public function dispatchArcadiaRefreshJob(Customer | User $user): bool
|
|
{
|
|
// FIXME: The Arcadia refresh job dispatching is currently disabled and needs to be enabled when api will be available.
|
|
return false;
|
|
|
|
// if ($user instanceof Customer) {
|
|
// return false;
|
|
// }
|
|
|
|
// return $user->role->isAtLeastEqualsTo(UserRole::Admin);
|
|
}
|
|
}
|