Project

General

Profile

2754.patch

krileon, 14 October 2011 06:54 PM

View differences:

administrator/components/com_comprofiler/library/cb/cb.acl.php
302 302
	}
303 303

  
304 304
	function get_allowed_access( $access_gid, $recurse, $user_gid ) {
305
		if ( ( $access_gid == -2 ) || ( ( $access_gid == -1 ) && ( $user_gid > 0 ) ) ) {
305
		if ( ( $access_gid == -2 ) || ( ( $access_gid == -1 ) && ( $user_gid && ( $user_gid != $this->mapGroupNamesToValues( 'Public' ) ) ) ) ) {
306 306
			return true;
307 307
		} else {
308 308
			if ( $user_gid == $access_gid ) {
......
396 396

  
397 397
			$standardlist		=	array( -2 );
398 398

  
399
			if ( $gid > 0 ) {
399
			if ( $gid && ( $gid != $this->mapGroupNamesToValues( 'Public' ) ) ) {
400 400
				$standardlist[]	=	-1;
401 401
			}
402 402