4
Version: 2.06
Problem: Webmaster group user can not be removed
Temporary solution:
file: modules/system/admin/groups/main.php
Line 227 - 230
} else {
$member_handler->removeUsersFromGroup($groupid, $uids);
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_DBUPDATED);
}
==>:
if(1!=$xoopsUser->uid()){ // Not the super webmaster? action denied!
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_ADMINNO);
}
$new_uids=array();
for($i=0;$i if(1!=$uids[$i]) $new_uids[]=$uids[$i]; // Not the super webmaster? removal is permitted
}
$uids=$new_uids;
}//else {
$member_handler->removeUsersFromGroup($groupid, $uids);
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_DBUPDATED);
//}