19 declare(strict_types=1);
34 return $this->
access->checkAccess($operation,
"", $ref_id);
40 foreach ($ids as
$id) {
41 if (!$this->
access->checkAccess(
'delete',
"", $id)) {
42 $not_deletable[] = (
int) $id;
45 $node_data = $this->tree->getNodeData($id);
46 $subtree_nodes = $this->tree->getSubTree($node_data);
48 foreach ($subtree_nodes as $node) {
49 if ($node[
'type'] ===
'rolf') {
52 if (!$this->
access->checkAccess(
'delete',
"", $node[
"child"])) {
53 $not_deletable[] = (
int) $node[
"child"];
57 return $not_deletable;
62 $this->rbacadmin->revokePermission($ref_id);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccess(string $operation, int $ref_id)
revokePermission(int $ref_id)
__construct(protected \ilAccess $access, protected \ilRbacAdmin $rbacadmin, protected TreeInterface $tree)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class ilRbacAdmin Core functions for role based access control.
getRefIdsWithoutDeletePermission(array $ids)