mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
allow admin to create po
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user