fix unauthorized booking access

This commit is contained in:
Jack Goh
2018-08-16 09:40:54 +08:00
parent df8c0312c9
commit 232edde8e4
+1 -1
View File
@@ -24,12 +24,12 @@ class BookingController extends Controller
public function index(){
$user = Auth::user();
$bookings = Booking::select('user_id', 'id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
->where('user_id', Auth::user()->id)
->where('status', '=', '6')
->orwhere('status', '=', '4')
->orwhere('status', '=', '3')
->orwhere('status', '=', '2')
->orwhere('status', '=', '1')
->where('user_id', Auth::user()->id)
->orderby('updated_at','desc')
->paginate(10);