fix(auth): require verified identity for wallet and gift card
This commit is contained in:
@@ -58,6 +58,7 @@ class GiftCardController extends Controller
|
||||
if(!$user){
|
||||
throw new UnprocessableEntityHttpException('auth failed!');
|
||||
}
|
||||
self::assertCustomerIdentityVerified($user instanceof Customer ? $user : null);
|
||||
|
||||
if (!app(ConfigService::class)->getBool('has_page_gift_card', false)) {
|
||||
throw new UnprocessableEntityHttpException('قابلیت کارت هدیه غیرفعال است.');
|
||||
|
||||
Reference in New Issue
Block a user