protected Object valid() { CruiseConfig config = configForEditing(); PipelineConfigs group = config.findGroup(groupName); return group.getCopyForEditing(); }
public boolean isUserAdminOfGroup(final CaseInsensitiveString userName, PipelineConfigs group) { return group.isUserAnAdmin(userName, rolesForUser(userName)); }