# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/comprofiler.php +++ components/com_comprofiler/comprofiler.php @@ -326,7 +326,7 @@ || ( $_CB_framework->myId() != $fromid ) || ( ! $toid ) || ( ( $ueConfig['allow_email_display'] != 1 ) && ( $ueConfig['allow_email_display'] != 3 ) ) - || ( ! allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', userGID( $_CB_framework->myId() ) ) ) ) + || ( ! allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', $_CB_framework->acl->get_groups_below_me( null, true ) ) ) ) { cbNotAuth(); return; @@ -385,7 +385,7 @@ return; } - if ( ! allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', userGID( $_CB_framework->myId() ) ) ) { + if ( ! allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', $_CB_framework->acl->get_groups_below_me( null, true ) ) ) { cbNotAuth(); return; } @@ -654,7 +654,7 @@ function userProfile( $option, $uid, $submitvalue) { global $_REQUEST, $ueConfig, $_CB_framework, $_PLUGINS; if ( isset( $_REQUEST['user'] ) ) { - if ( ! allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', userGID( $_CB_framework->myId() ) ) ) { + if ( ! allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', $_CB_framework->acl->get_groups_below_me( null, true ) ) ) { if ( ( $_CB_framework->myId() < 1 ) && ( ! ( ( ( $_CB_framework->getCfg( 'allowUserRegistration' ) == '0' ) && ( ( ! isset($ueConfig['reg_admin_allowcbregistration']) ) || $ueConfig['reg_admin_allowcbregistration'] != '1' ) ) @@ -728,7 +728,7 @@ $msg = checkCBpermissions( array( (int) $user->id ), 'edit', true ); } } elseif ( ( $reason === 'profile' ) || ( $reason === 'list' ) ) { - if ( allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', userGID( $_CB_framework->myId() ) ) ) { + if ( allowAccess( $ueConfig['allow_profileviewbyGID'], 'RECURSE', $_CB_framework->acl->get_groups_below_me( null, true ) ) ) { $msg = null; } else { $msg = _UE_NOT_AUTHORIZED; @@ -1433,7 +1433,7 @@ echo _UE_FUNCTIONALITY_DISABLED; exit(); } - if (!allowAccess( $ueConfig['allow_profileviewbyGID'],'RECURSE', userGID( $_CB_framework->myId() ))) { + if (!allowAccess( $ueConfig['allow_profileviewbyGID'],'RECURSE', $_CB_framework->acl->get_groups_below_me( null, true ))) { echo _UE_NOT_AUTHORIZED; return; }