Project

General

Profile

Bug #3540 ยป 3540.patch

krileon, 29 May 2012 16:18

View differences:

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;
}
}
    (1-1/1)