mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 11:33:11 +00:00
[Task 71442] fixed compile error after merge
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
package org.dspace.app.rest.security;
|
package org.dspace.app.rest.security;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.sql.SQLException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@@ -69,6 +70,7 @@ public class EPersonRestPermissionEvaluatorPlugin extends RestObjectPermissionEv
|
|||||||
UUID dsoId = UUID.fromString(targetId.toString());
|
UUID dsoId = UUID.fromString(targetId.toString());
|
||||||
|
|
||||||
// anonymous user
|
// anonymous user
|
||||||
|
try {
|
||||||
if (ePerson == null) {
|
if (ePerson == null) {
|
||||||
return false;
|
return false;
|
||||||
} else if (dsoId.equals(ePerson.getID())) {
|
} else if (dsoId.equals(ePerson.getID())) {
|
||||||
@@ -80,6 +82,9 @@ public class EPersonRestPermissionEvaluatorPlugin extends RestObjectPermissionEv
|
|||||||
&& AuthorizeUtil.canCollectionAdminManageAccounts()) {
|
&& AuthorizeUtil.canCollectionAdminManageAccounts()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
} catch (SQLException e) {
|
||||||
|
log.error(e.getMessage(), e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user