mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 08:24:06 +00:00
-open refund function for all admin (ignore whether the booking has invoice or not)
-when refund is before the whiteform, auto approve the transaction
This commit is contained in:
+2
-2
@@ -86,8 +86,8 @@ class UpdateRefundTransactionStatusLogic extends AbstractControllerLogic
|
||||
*/
|
||||
public function logic(Request $request) : JsonResponse
|
||||
{
|
||||
if (!(Auth::user()->type === 0 || Auth::user()->type === 1)) {
|
||||
throw new MalformedRequestException('Only super admin can update refund status.');
|
||||
if(auth()->user()->type === 3) {
|
||||
throw new MalformedRequestException('You do not have the permission to refund the order.');
|
||||
}
|
||||
|
||||
$refundTransaction = $this->fetchesTransaction->execute(['id' => $request->route('id')]);
|
||||
|
||||
Reference in New Issue
Block a user