Fixed incorrect authorization for ShowImage API
This commit is contained in:
parent
0535626df1
commit
08c53a9292
2 changed files with 2 additions and 13 deletions
|
@ -40,12 +40,6 @@ class Rest_ShowImageController extends Zend_Rest_Controller {
|
|||
* RESTful POST endpoint; used when uploading show images
|
||||
*/
|
||||
public function postAction() {
|
||||
if (!RestAuth::verifyAuth(true, true)) {
|
||||
$this->getResponse()
|
||||
->setHttpResponseCode(401)
|
||||
->appendBody("Authentication failed");
|
||||
return;
|
||||
}
|
||||
|
||||
$showId = $this->getShowId();
|
||||
|
||||
|
@ -89,12 +83,6 @@ class Rest_ShowImageController extends Zend_Rest_Controller {
|
|||
* RESTful DELETE endpoint; used when deleting show images
|
||||
*/
|
||||
public function deleteAction() {
|
||||
if (!RestAuth::verifyAuth(true, true)) {
|
||||
$this->getResponse()
|
||||
->setHttpResponseCode(401)
|
||||
->appendBody("Authentication failed");
|
||||
return;
|
||||
}
|
||||
|
||||
$showId = $this->getShowId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue