Skip to content

Commit

Permalink
fix purge
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Nov 20, 2024
1 parent deb0d5d commit 80b337a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions inc/abstractcontainerinstance.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function canViewItem()
{
//check if current user have access to the main item entity
$item = new $this->fields['itemtype']();
$item->getFromDB($this->fields['item_id']);
$item->getFromDB($this->fields['items_id']);
if (!Session::haveAccessToEntity($item->getEntityID(), $item->isRecursive())) {
return false;
}
Expand All @@ -50,7 +50,7 @@ public function canUpdateItem()
{
//check if current user have access to the main item entity
$item = new $this->fields['itemtype']();
$item->getFromDB($this->fields['item_id']);
$item->getFromDB($this->fields['items_id']);
if (!Session::haveAccessToEntity($item->getEntityID(), $item->isRecursive())) {
return false;
}
Expand All @@ -64,10 +64,7 @@ public function canUpdateItem()

public function canPurgeItem()
{
if (isAPI()) {
return false;
}
return true;
return false;
}


Expand Down

0 comments on commit 80b337a

Please sign in to comment.