Skip to content

Commit 80b337a

Browse files
committed
fix purge
1 parent deb0d5d commit 80b337a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

inc/abstractcontainerinstance.class.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function canViewItem()
3434
{
3535
//check if current user have access to the main item entity
3636
$item = new $this->fields['itemtype']();
37-
$item->getFromDB($this->fields['item_id']);
37+
$item->getFromDB($this->fields['items_id']);
3838
if (!Session::haveAccessToEntity($item->getEntityID(), $item->isRecursive())) {
3939
return false;
4040
}
@@ -50,7 +50,7 @@ public function canUpdateItem()
5050
{
5151
//check if current user have access to the main item entity
5252
$item = new $this->fields['itemtype']();
53-
$item->getFromDB($this->fields['item_id']);
53+
$item->getFromDB($this->fields['items_id']);
5454
if (!Session::haveAccessToEntity($item->getEntityID(), $item->isRecursive())) {
5555
return false;
5656
}
@@ -64,10 +64,7 @@ public function canUpdateItem()
6464

6565
public function canPurgeItem()
6666
{
67-
if (isAPI()) {
68-
return false;
69-
}
70-
return true;
67+
return false;
7168
}
7269

7370

0 commit comments

Comments
 (0)