visuddhinanda 2 лет назад
Родитель
Сommit
dadb6bee83
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      app/Http/Controllers/ChannelController.php

+ 1 - 3
app/Http/Controllers/ChannelController.php

@@ -325,7 +325,7 @@ class ChannelController extends Controller
         }
 
         //获取共享channel
-        if($request->get('owner')==='all' || $request->get('owner')==='cooperator'){
+        if($request->get('owner')==='all' || $request->get('owner')==='collaborator'){
             $allSharedChannels = ShareApi::getResList($user['user_uid'],2);
             foreach ($allSharedChannels as $key => $value) {
                 # code...
@@ -365,8 +365,6 @@ class ChannelController extends Controller
                                         ->get();
         }
 
-
-
         //所有需要查询的channel
         $result = Channel::select(['uid','name','summary','type','owner_uid','lang','status','updated_at','created_at'])
                         ->whereIn('uid', $channelId)