debug code
This commit is contained in:
@@ -22,7 +22,7 @@ class GeneralManagerController extends Controller
|
||||
$user = auth()->user();
|
||||
$query = Harim::query()
|
||||
->where('state_id','=',HarimStates::Baresi_Imeni_Rah_Tavasot_Modir_Kol->value)
|
||||
->where('edare_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->where('edareh_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->with('histories:expert_description');
|
||||
|
||||
$data = DataTableFacade::run(
|
||||
|
||||
@@ -23,7 +23,7 @@ class HarimOfficeController extends Controller
|
||||
$user = auth()->user();
|
||||
$query = Harim::query()
|
||||
->where('state_id','=',HarimStates::Baresi_Imeni_Rah_Tavasot_Daftar_Harim->value)
|
||||
->where('edare_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->where('edareh_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->with('expert_description');
|
||||
$data = DataTableFacade::run(
|
||||
$query,
|
||||
|
||||
@@ -22,7 +22,7 @@ class ProvinceOfficeController extends Controller
|
||||
$user = auth()->user();
|
||||
$query = Harim::query()
|
||||
->where('state_id','=',HarimStates::Baresi_Edare_Shahrestan->value)
|
||||
->where('edare_shahri_id', '=', $user->edarate_shahri_id);
|
||||
->where('edareh_shahri_id', '=', $user->edarate_shahri_id);
|
||||
|
||||
$data = DataTableFacade::run(
|
||||
$query,
|
||||
|
||||
@@ -22,7 +22,7 @@ class TechnicalDeputyController extends Controller
|
||||
$user = auth()->user();
|
||||
$query = Harim::query()
|
||||
->where('state_id', '=', HarimStates::Baresi_Imeni_Rah_Tavasot_Moaven->value)
|
||||
->where('edare_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->where('edareh_shahri_id', '=', $user->edarate_shahri_id)
|
||||
->with('histories:expert_description');
|
||||
|
||||
$data = DataTableFacade::run(
|
||||
|
||||
@@ -12,7 +12,7 @@ class ConfirmRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Moaven->value;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class RejectRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Moaven->value;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class ConfirmRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Modir_Kol->value;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class RejectRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Modir_Kol->value; }
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,7 +12,7 @@ class NoRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Daftar_Harim->value;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class YesRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Imeni_Rah_Tavasot_Daftar_Harim->value;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class FeedBackRequest extends FormRequest
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->harim->edare_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
return $this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id &&
|
||||
$this->harim->state_id == HarimStates::Baresi_Edare_Shahrestan->value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user