Add permissions for editing and deleting own order bookings in orderBookingRoute
This commit is contained in:
@@ -201,7 +201,8 @@ class orderBookingRoute
|
||||
$response->success($object->asArray());
|
||||
},
|
||||
[
|
||||
'edit_bookings' => 'Permission to edit order bookings. Only applies to bookings already permitted.'
|
||||
'edit_bookings' => 'Permission to edit order bookings. Only applies to bookings already permitted.',
|
||||
'edit_own_bookings' => 'Permission to edit own order bookings.'
|
||||
]
|
||||
);
|
||||
|
||||
@@ -251,7 +252,8 @@ class orderBookingRoute
|
||||
$response->success(['message' => 'Order booking deleted successfully.']);
|
||||
},
|
||||
[
|
||||
'delete_bookings' => 'Permission to delete order bookings. Only applies to bookings already permitted.'
|
||||
'delete_bookings' => 'Permission to delete order bookings. Only applies to bookings already permitted.',
|
||||
'delete_own_bookings' => 'Permission to delete own order bookings. Only applies to uncompleted bookings.'
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user