fix: remove unnecessary task assignment checks in cooperation accept and reject actions

This commit is contained in:
Yoga Pangestu 2026-07-21 14:26:40 +07:00
parent f04138f51a
commit b85323e5b2
2 changed files with 0 additions and 8 deletions

View File

@ -66,10 +66,6 @@ protected function setUp(): void
return false;
}
if (! $record->taskAssignment()->exists()) {
return false;
}
$cooperationMedia = $record->cooperationMedia()
->whereHas('partnerMedia.company', function (Builder $query): void {
$query->where('user_id', auth()->id());

View File

@ -59,10 +59,6 @@ protected function setUp(): void
return false;
}
if (! $record->taskAssignment()->exists()) {
return false;
}
$cooperationMedia = $record->cooperationMedia()
->whereHas('partnerMedia.company', function ($query) {
$query->where('user_id', auth()->id());