Skip to content

Commit

Permalink
remove hardcoded open datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPeck committed Nov 13, 2023
1 parent 939a686 commit 7437e69
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ public class FENCEAuthenticationService {
"\\\\_Consents\\\\" ///old _Consents\Short Study... path no longer used, but still present in examples.
};

//TODO: Remove when RAS is implemented
private static final List<String> openDatasets = Collections.unmodifiableList(
new ArrayList<>() {{
add("tutorial-biolincc_camp");
add("tutorial-biolincc_digitalis");
}});

@PostConstruct
public void initializeFenceService() {
picSureApp = applicationRepo.getUniqueResultByColumn("name", "PICSURE");
Expand Down Expand Up @@ -213,11 +206,6 @@ public Response getFENCEProfile(String callback_url, Map<String, String> authReq
createAndUpsertRole(access_role_name, current_user);
}

//add open access roles
for (String access_role_name : openDatasets) {
createAndUpsertRole(access_role_name, current_user);
}

final String idp = extractIdp(current_user);

if (current_user.getRoles() != null && (current_user.getRoles().size() > 0 || openAccessIdpValues.contains(idp))) {
Expand Down

0 comments on commit 7437e69

Please sign in to comment.