fixed seller form
This commit is contained in:
@@ -562,9 +562,9 @@ class DashboardController extends Controller
|
||||
|
||||
public function alternativeInvestmentFundSellerForm($custom_id = null)
|
||||
{
|
||||
if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) {
|
||||
abort(403);
|
||||
}
|
||||
// if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) {
|
||||
// abort(403);
|
||||
// }
|
||||
if ($custom_id) {
|
||||
$productId = MonthlyUpdateMaster::where(['custom_id' => \Crypt::decrypt($custom_id), 'users_id' => auth()->guard('users')->user()->id])->value('products_id');
|
||||
$alternativeInvestmentFund = AlternativeInvestmentFund::where('products_id', $productId)->first();
|
||||
@@ -597,9 +597,9 @@ class DashboardController extends Controller
|
||||
|
||||
public function fractionalRealEstateSellerForm($custom_id = null)
|
||||
{
|
||||
if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) {
|
||||
abort(403);
|
||||
}
|
||||
// if (MarketplaceSellerForm::where('users_id', auth()->guard('users')->user()->id)->where('status', true)->doesntExist()) {
|
||||
// abort(403);
|
||||
// }
|
||||
if ($custom_id) {
|
||||
$productId = MonthlyUpdateMaster::where(['custom_id' => \Crypt::decrypt($custom_id), 'users_id' => auth()->guard('users')->user()->id])->value('products_id');
|
||||
$fractionalRealEstate = FractionalRealEstate::where('products_id', $productId)->first();
|
||||
|
||||
Reference in New Issue
Block a user