Removed annoying logging
This commit is contained in:
parent
ec3e0a9b9f
commit
81dadb7f85
|
@ -19,7 +19,6 @@ class WebstreamController extends Zend_Controller_Action
|
||||||
if (!$this->isAuthorized(-1)) {
|
if (!$this->isAuthorized(-1)) {
|
||||||
// TODO: this header call does not actually print any error message
|
// TODO: this header call does not actually print any error message
|
||||||
header("Status: 401 Not Authorized");
|
header("Status: 401 Not Authorized");
|
||||||
Logging::info("Ain't not Authorized");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,8 +111,6 @@ class WebstreamController extends Zend_Controller_Action
|
||||||
host/dj, that he has the correct permission.*/
|
host/dj, that he has the correct permission.*/
|
||||||
$user = Application_Model_User::getCurrentUser();
|
$user = Application_Model_User::getCurrentUser();
|
||||||
//only allow when webstream belongs to the DJ
|
//only allow when webstream belongs to the DJ
|
||||||
Logging::info("Webstream id:".$webstream->getDbCreatorId());
|
|
||||||
Logging::info("User id:".$user->getId());
|
|
||||||
return $webstream->getDbCreatorId() == $user->getId();
|
return $webstream->getDbCreatorId() == $user->getId();
|
||||||
}
|
}
|
||||||
/*we are creating a new stream. Don't need to check whether the
|
/*we are creating a new stream. Don't need to check whether the
|
||||||
|
|
Loading…
Reference in New Issue