Bug #3540 ยป 3540.patch
administrator/components/com_comprofiler/library/cb/cb.acl.php | ||
---|---|---|
}
|
||
|
||
if ( ! isset( $paths[$gid] ) ) {
|
||
$iAmSuper = $this->amIaSuperAdmin();
|
||
$isSuper = ( $gid == $this->mapGroupNamesToValues( 'Superadministrator' ) );
|
||
|
||
$paths[$gid] = array();
|
||
foreach( $grps as $grp ) {
|
||
if ( ( ( $grp->lft <= $grps[$gid]->lft ) && ( $grp->rgt >= $grps[$gid]->rgt ) ) || $iAmSuper ) {
|
||
if ( ( ( $grp->lft <= $grps[$gid]->lft ) && ( $grp->rgt >= $grps[$gid]->rgt ) ) || $isSuper ) {
|
||
$paths[$gid][] = $grp->id;
|
||
}
|
||
}
|