export_to_pdf #8

Merged
francesco.mangiacrapa merged 84 commits from export_to_pdf into master 2024-06-28 15:17:39 +02:00
2 changed files with 22 additions and 13 deletions
Showing only changes of commit a039617790 - Show all commits

View File

@ -18,6 +18,7 @@
@ -46,6 +47,7 @@
@ -73,6 +75,7 @@
@ -100,6 +103,7 @@
@ -127,6 +131,7 @@
@ -160,6 +165,7 @@
@ -187,6 +193,7 @@
@ -214,6 +221,7 @@
@ -240,6 +248,7 @@

View File

@ -121,14 +121,14 @@ public class GeoportalExporter {
boolean checked = false;
SecretManager cm = SecretManagerProvider.instance.get();
final String context = cm.getContext();
SecretManager secreteManager = SecretManagerProvider.instance.get();
final String context = secreteManager.getContext();
if (context == null) {
throw ExceptionManager.forbiddenException(req, "Cannot determine context (the scope)", this.getClass(),
helpURI);
}
final org.gcube.common.authorization.utils.user.User user = cm.getUser();
final org.gcube.common.authorization.utils.user.User user = secreteManager.getUser();
if (user == null) {
throw ExceptionManager.forbiddenException(req, "Cannot determine user", this.getClass(), helpURI);
}