CC-3336: Refactor schedule API used by pypo
-initial commit
This commit is contained in:
parent
d8f7cce56e
commit
322d1bfa99
2 changed files with 104 additions and 82 deletions
|
@ -276,12 +276,14 @@ class ApiController extends Zend_Controller_Action
|
|||
|
||||
$api_key = $this->_getParam('api_key');
|
||||
|
||||
/*
|
||||
if(!in_array($api_key, $CC_CONFIG["apiKey"]))
|
||||
{
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
print 'You are not allowed to access this resource. ';
|
||||
exit;
|
||||
}
|
||||
* */
|
||||
|
||||
PEAR::setErrorHandling(PEAR_ERROR_RETURN);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue