Project

General

Profile

Bug #2754 ยป 2754.patch

krileon, 14 October 2011 18:54

View differences:

administrator/components/com_comprofiler/library/cb/cb.acl.php
}
function get_allowed_access( $access_gid, $recurse, $user_gid ) {
if ( ( $access_gid == -2 ) || ( ( $access_gid == -1 ) && ( $user_gid > 0 ) ) ) {
if ( ( $access_gid == -2 ) || ( ( $access_gid == -1 ) && ( $user_gid && ( $user_gid != $this->mapGroupNamesToValues( 'Public' ) ) ) ) ) {
return true;
} else {
if ( $user_gid == $access_gid ) {
......
$standardlist = array( -2 );
if ( $gid > 0 ) {
if ( $gid && ( $gid != $this->mapGroupNamesToValues( 'Public' ) ) ) {
$standardlist[] = -1;
}
    (1-1/1)