Skip to content
Snippets Groups Projects

fix(SwissNationalLibraryService): [AOU-1751] use current access level to check...

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -239,9 +239,9 @@ public class SwissNationalLibraryService extends AouService {
return false;
}
// THESIS file is not public
if (thesisFileOpt.get().getAccessLevel() == DocumentFile.AccessLevel.PUBLIC) {
log.info("Publication {} does not match criteria as its thesis file is public", publication.getResId());
// THESIS file is not public currently
if (thesisFileOpt.get().getCurrentAccessLevel() == DocumentFile.AccessLevel.PUBLIC) {
log.info("Publication {} does not match criteria as its thesis file is currently public", publication.getResId());
return false;
}
Loading