File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments