Fixed CSRF token checking in MediaController (broken by last 2 commits)
* Also fixed getOwnerId(), no longer calls a non-existent function
This commit is contained in:
parent
476128ce87
commit
d5ee710f89
2 changed files with 11 additions and 6 deletions
|
@ -338,7 +338,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
private function getOwnerId()
|
||||
{
|
||||
try {
|
||||
if ($this->verifySession()) {
|
||||
if (Zend_Auth::getInstance()->hasIdentity()) {
|
||||
$service_user = new Application_Service_UserService();
|
||||
return $service_user->getCurrentUser()->getDbId();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue