renamed variable

This commit is contained in:
Francesco Mangiacrapa 2024-04-24 11:55:32 +02:00
parent 1abd00f6cb
commit a039617790
2 changed files with 22 additions and 13 deletions

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);
}