Bug #2114 » 2114_cb.tables.patch
administrator/components/com_comprofiler/library/cb/cb.tables.php | ||
---|---|---|
// 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:
|
||
if ( $ui == 2 ) {
|
||
$myGid = userGID( $_CB_framework->myId() );
|
||
$cms_admin = $_CB_framework->acl->mapGroupNamesToValues( 'Administrator' );
|
||
$cms_super_admin = $_CB_framework->acl->mapGroupNamesToValues( 'Superadministrator' );
|
||
$cms_admin = $_CB_framework->acl->mapGroupNamesToValues( 'administrator' );
|
||
$cms_super_admin = $_CB_framework->acl->mapGroupNamesToValues( 'super administrator' );
|
||
if ( ! $isNew ) {
|
||
if ( $this->gid != $oldUserComplete->gid ) {
|
||
if ( $oldUserComplete->gid == $cms_super_admin ) {
|