|
@@ -490,11 +490,11 @@ class ChannelController extends Controller
|
|
|
{
|
|
{
|
|
|
//
|
|
//
|
|
|
$user = AuthApi::current($request);
|
|
$user = AuthApi::current($request);
|
|
|
- if($user){
|
|
|
|
|
|
|
+ if(!$user){
|
|
|
return $this->error(__('auth.failed'),401,401);
|
|
return $this->error(__('auth.failed'),401,401);
|
|
|
}
|
|
}
|
|
|
//判断当前用户是否有指定的studio的权限
|
|
//判断当前用户是否有指定的studio的权限
|
|
|
- if($user['user_uid'] === StudioApi::getIdByName($request->get('studio'))){
|
|
|
|
|
|
|
+ if($user['user_uid'] !== StudioApi::getIdByName($request->get('studio'))){
|
|
|
return $this->error(__('auth.failed'),403,403);
|
|
return $this->error(__('auth.failed'),403,403);
|
|
|
}
|
|
}
|
|
|
//查询是否重复
|
|
//查询是否重复
|