remove mission relation from cartables
This commit is contained in:
@@ -20,13 +20,11 @@ class SupervisorService
|
||||
|
||||
if ($user->hasPermissionTo('show-road-item-supervise-cartable')) {
|
||||
$query = RoadItemsProject::query()
|
||||
->with('mission:id')
|
||||
->where('is_new', 1);
|
||||
}
|
||||
elseif ($user->hasPermissionTo('show-road-item-supervise-cartable-province')) {
|
||||
throw_if(is_null($user->province_id), new ProhibitedAction('استانی برای شما در سامانه ثبت نشده است!'));
|
||||
$query = RoadItemsProject::query()
|
||||
->with('mission:id')
|
||||
->where('is_new', 1)
|
||||
->where('province_id', auth()->user()->province_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user