Skip to content

Commit

Permalink
Fixed 0015469: missing rights in the didactical templates
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer-ilias committed Feb 20, 2015
1 parent 2a0eff3 commit 133db5a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Services/AccessControl/classes/class.ilRbacAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,17 +767,16 @@ public function copyRolePermissionUnion(
{
foreach($ops as $op)
{
if(!isset($s2_ops[$type]) or !in_array($op, $s2_ops[$type]))
{
$query = 'INSERT INTO rbac_templates (rol_id,type,ops_id,parent) '.
'VALUES( '.
$ilDB->quote($a_dest_id,'integer').', '.
$ilDB->quote($type,'text').', '.
$ilDB->quote($op,'integer').', '.
$ilDB->quote($a_dest_parent,'integer').' '.
')';
$ilDB->manipulate($query);
}
// insert all permission of source 1
// #15469
$query = 'INSERT INTO rbac_templates (rol_id,type,ops_id,parent) '.
'VALUES( '.
$ilDB->quote($a_dest_id,'integer').', '.
$ilDB->quote($type,'text').', '.
$ilDB->quote($op,'integer').', '.
$ilDB->quote($a_dest_parent,'integer').' '.
')';
$ilDB->manipulate($query);
}
}

Expand Down

0 comments on commit 133db5a

Please sign in to comment.