Commit 0e32b640 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Send error response if channel is no Pro

parent 0070c0aa
Pipeline #84419721 passed with stages
in 12 minutes and 21 seconds
......@@ -34,6 +34,13 @@ class channel implements Interfaces\Api
$channel->fullExport = true; //get counts
$channel->exportCounts = true;
if (!$channel->isPro()) {
return Factory::response([
'status' => 'error',
'message' => 'E_NOT_PRO'
]);
}
/** @var Manager $manager */
$manager = Di::_()->get('Pro\Manager');
$manager->setUser($channel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment