2023-01-01 13:00:21 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Policies\WorkOrder;
|
|
|
|
|
|
|
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
|
|
|
use Illuminate\Auth\Access\Response;
|
|
|
|
|
|
|
|
class ReplyPolicy
|
|
|
|
{
|
|
|
|
use HandlesAuthorization;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine whether the user can view any models.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return Response|bool
|
|
|
|
*/
|
2023-01-10 13:42:27 +00:00
|
|
|
public function viewAny(): Response|bool
|
2023-01-01 13:00:21 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine whether the user can create models.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return Response|bool
|
|
|
|
*/
|
2023-01-10 13:42:27 +00:00
|
|
|
public function create(): Response|bool
|
2023-01-01 13:00:21 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine whether the user can update the model.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return Response|bool
|
|
|
|
*/
|
2023-01-10 13:42:27 +00:00
|
|
|
public function update(): Response|bool
|
2023-01-01 13:00:21 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine whether the user can delete the model.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return Response|bool
|
|
|
|
*/
|
2023-01-10 13:42:27 +00:00
|
|
|
public function delete(): Response|bool
|
2023-01-01 13:00:21 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|