Skip to content

Commit

Permalink
BAC: Fix Importing Roles With Missing Rights
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Dec 14, 2023
1 parent b74576b commit ded14e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Services/AccessControl/classes/class.ilRoleXmlImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@ public function importSimpleXml(SimpleXMLElement $role)

foreach ($role->operations as $sxml_operations) {
foreach ($sxml_operations as $sxml_op) {
$operation = trim((string) $sxml_op);
if (!array_key_exists($operation, $operations)) {
continue;
}
$ops_group = (string) $sxml_op['group'];
$ops_id = (int) $operations[trim((string) $sxml_op)];
$ops_id = (int) $operations[$operation];
$ops = trim((string) $sxml_op);

if ($ops_group and $ops_id) {
Expand Down

0 comments on commit ded14e0

Please sign in to comment.