loans api done
This commit is contained in:
@@ -159,7 +159,7 @@ class LoanOrderController extends Controller
|
||||
*/
|
||||
public function destroy(LoanOrder $loanOrder): JsonResponse
|
||||
{
|
||||
if ($loanOrder->user_id === auth()->id()) {
|
||||
if ($loanOrder->user_id != auth()->id()) {
|
||||
return response()->json(status: 403);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user