allow admin to create po

This commit is contained in:
omair saleh
2020-09-29 12:21:17 +08:00
parent 445a6bff17
commit af183e6a22
+1 -1
View File
@@ -82,7 +82,7 @@ class InvoiceController extends Controller
}
// user_id in booking does not match
if ($booking->user_id !== $user->id) {
if ($booking->user_id !== $user->id && $user->role !== 'admin') {
return response()->json([
'message' => 'Booking does not belongs to you.'
], 403);