getDataObjectId(); if ($submissionId === false) return AUTHORIZATION_DENY; // Validate the section editor submission id. $sectionEditorSubmissionDao =& DAORegistry::getDAO('SectionEditorSubmissionDAO'); $sectionEditorSubmission =& $sectionEditorSubmissionDao->getSectionEditorSubmission($submissionId); if (!is_a($sectionEditorSubmission, 'SectionEditorSubmission')) return AUTHORIZATION_DENY; // Check whether the article is actually part of the journal // in the context. $request =& $this->getRequest(); $router =& $request->getRouter(); $journal =& $router->getContext($request); if (!is_a($journal, 'Journal')) return AUTHORIZATION_DENY; if ($sectionEditorSubmission->getJournalId() != $journal->getId()) return AUTHORIZATION_DENY; // Save the section editor submission to the authorization context. $this->addAuthorizedContextObject(ASSOC_TYPE_ARTICLE, $sectionEditorSubmission); return AUTHORIZATION_PERMIT; } } ?>