dyjh 6 anni fa
parent
commit
bafaaec1be
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/Http/Controllers/Api/V1/AlbumController.php

+ 2 - 2
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -391,8 +391,8 @@ class AlbumController extends Controller
             $set_show_price = 0;
         }
 
-        if ($userAuth->isdealer == 1) {
-            $agent_me = AlbumAgentModel::where('user_id',$userAuth->id)->first();dd($agent_me);
+        if ($userAuth->is_dealer == 1) {
+            $agent_me = AlbumAgentModel::where('user_id',$userAuth->id)->first();
             $set_show_price = $agent_me->is_show_ma_price;
         }