Skip to content

Commit 79abd10

Browse files
committed
removed log and added missing suffix
1 parent afb7471 commit 79abd10

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/cbioportal/legacy/service/FrontendPropertiesServiceImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ public String getFrontendProperty(FrontendProperty property) {
292292

293293
public Map<String, String> getFrontendProperties(Authentication authentication) {
294294
// Make sure that requests work on individual instances of this data.
295-
log.info("getFrontendProperties start");
296295
Map<String,String> properties = cloneProperties();
297296
updateShowDownloadButtonProperties(properties, authentication);
298297
return properties;
@@ -308,12 +307,9 @@ private Map<String,String> cloneProperties() {
308307
}
309308

310309
private void updateShowDownloadButtonProperties(Map<String,String> properties, Authentication authentication) {
311-
String downloadGroup = env.getProperty("download_group", "");
312-
log.info("downloadGroup: {}, auth: {}", downloadGroup, authentication);
310+
String downloadGroup = "ROLE_" + env.getProperty("download_group", "");
313311
if(authentication != null && StringUtils.isNotEmpty(downloadGroup)) {
314312
boolean userHasDownloadRole = authentication.getAuthorities().contains(new SimpleGrantedAuthority(downloadGroup));
315-
log.info("userHasDownloadRole: {}", userHasDownloadRole);
316-
log.info("authentication authorities: {}", authentication.getAuthorities());
317313
if(userHasDownloadRole) {
318314
properties.put("skin_hide_download_controls", "show");
319315
}

0 commit comments

Comments
 (0)