Project

General

Profile

2114_cb.tables.patch

krileon, 01 December 2010 03:56 PM

View differences:

administrator/components/com_comprofiler/library/cb/cb.tables.php
1251 1251
			// In backend only: if group has been changed and where original group was a Super Admin: check if there is at least a super-admin left:
1252 1252
			if ( $ui == 2 ) {
1253 1253
				$myGid							=	userGID( $_CB_framework->myId() );
1254
				$cms_admin						=	$_CB_framework->acl->mapGroupNamesToValues( 'Administrator' );
1255
				$cms_super_admin				=	$_CB_framework->acl->mapGroupNamesToValues( 'Superadministrator' );
1254
				$cms_admin						=	$_CB_framework->acl->mapGroupNamesToValues( 'administrator' );
1255
				$cms_super_admin				=	$_CB_framework->acl->mapGroupNamesToValues( 'super administrator' );
1256 1256
				if ( ! $isNew ) {
1257 1257
					if ( $this->gid != $oldUserComplete->gid ) {
1258 1258
						if ( $oldUserComplete->gid == $cms_super_admin ) {