Skip to content

Commit

Permalink
pkp/pkp-lib#8299 Fix representation policy
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Oct 4, 2022
1 parent 1987cc5 commit 9c997a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function dataObjectEffect() {

// Make sure the representation belongs to the submission.
$representationDao = Application::getRepresentationDAO();
$representation = $representationDao->getById($representationId, $publication->getId(), null);
$representation = $representationDao->getById($representationId, $publication->getId());
if (!is_a($representation, 'Representation')) return AUTHORIZATION_DENY;

// Save the representation to the authorization context.
Expand Down
2 changes: 1 addition & 1 deletion classes/submission/RepresentationDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class RepresentationDAO extends DAO {
* @param $representationId int Representation ID.
* @param $publicationId int Optional publication ID.
* @param $contextId int Optional context ID.
* @return DAOResultFactory
* @return Representation
*/
abstract function getById($representationId, $publicationId = null, $contextId = null);

Expand Down

0 comments on commit 9c997a8

Please sign in to comment.