Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 1a91935

Browse files
author
Michael Grauer
committed
BUG: refs #953. fix for itemListPermissions bug.
1 parent 2bb7f77 commit 1a91935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/api/controllers/components/ApiComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ public function itemListPermissions($args)
22282228
$itemId = $args['item_id'];
22292229
$item = $itemModel->load($itemId);
22302230

2231-
if($itemId === false)
2231+
if($item === false)
22322232
{
22332233
throw new Exception("This item doesn't exist.", MIDAS_INVALID_PARAMETER);
22342234
}

0 commit comments

Comments
 (0)