@@ -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