fix: remove unnecessary task assignment checks in cooperation accept and reject actions
This commit is contained in:
parent
f04138f51a
commit
b85323e5b2
@ -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());
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user