mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 03:10:51 +00:00
UserSubscription page fix
PaymentMethods page fix
This commit is contained in:
@@ -85,8 +85,8 @@ class UserController extends Controller
|
|||||||
{
|
{
|
||||||
$user = User::find($id);
|
$user = User::find($id);
|
||||||
|
|
||||||
if (! $user->stripeId()) {
|
if (! $user->stripeId() || ! $user->subscription('main')) {
|
||||||
return response('User is not stripe customer', 404);
|
return response('User doesn\'t have any subscription.', 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new UserSubscription(
|
return new UserSubscription(
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Payment methods table-->
|
<!--Payment methods table-->
|
||||||
<DatatableWrapper :table-data="{data: PaymentMethods}" :paginator="false" :columns="columns" class="table">
|
<DatatableWrapper v-if="PaymentMethods" :table-data="{data: PaymentMethods}" :paginator="false" :columns="columns" class="table">
|
||||||
|
|
||||||
<!--Table data content-->
|
<!--Table data content-->
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
|
|||||||
Reference in New Issue
Block a user