return nukeHandler.unnuke(fs.getRealParentWorkingDirectoryPath(), fs.getCurrentSection().getName(), parameterList[1], user.getUsername(), Formatter.join(parameterList, 2, parameterList.length, " "));
}
protected boolean currentUserIsGadminForUser(String username, User user) {
try {
User u = ServiceManager.getServices().getUserbase().getUser(username);
//current user is gadmin for any of the groups the specified user is a member of
for (String gadminGroup : user.getGadminGroups()) { // this is generally a smaller set, so it makes sense to go over that first, since we abort early
if (u.isMemberOfGroup(gadminGroup)) {
return true;
}
}
} catch (NoSuchUserException e) {
// you can't be the gadmin of a user that doesn't exist