Project

General

Profile

2114_cb.acl.patch

krileon, 01 December 2010 03:56 PM

View differences:

administrator/components/com_comprofiler/library/cb/cb.acl.php
495 495
			if ( ! is_numeric( $v ) ) {
496 496
				if ( ! $ps ) {
497 497
					if ( checkJversion() >= 2 ) {
498
						$ps				=	array( 'Public' =>  1, 'Registered' =>  2, 'Author' =>  3, 'Editor' =>  4, 'Publisher' =>  5, 'Manager' =>  6, 'Administrator' =>  7, 'Superadministrator' =>  8 );
498
						$ps				=	array( 'public' => 1, 'registered' => 2, 'author' => 3, 'editor' => 4, 'publisher' => 5, 'manager' => 6, 'administrator' => 7, 'super administrator' => 8 );
499 499
					} else {
500
						$ps				=	array( 'Public' => 29, 'Registered' => 18, 'Author' => 19, 'Editor' => 20, 'Publisher' => 21, 'Manager' => 23, 'Administrator' => 24, 'Superadministrator' => 25 );
500
						$ps				=	array( 'public' => 29, 'registered' => 18, 'author' => 19, 'editor' => 20, 'publisher' => 21, 'manager' => 23, 'administrator' => 24, 'super administrator' => 25 );
501 501
					}
502 502
				}
503 503
				if ( array_key_exists( $v, $ps ) ) {
......
518 518

  
519 519
		$msg							=	null;
520 520

  
521
		$cms_admins						=	$this->mapGroupNamesToValues( array( 'administrator', 'superadministrator' ) );
521
		$cms_admins						=	$this->mapGroupNamesToValues( array( 'administrator', 'super administrator' ) );
522 522

  
523 523
		if ( is_array( $user_ids ) && count( $user_ids ) ) {
524 524
			$obj						=	new moscomprofilerUser( $_CB_database );