mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
Merge pull request #3300 from atmire/w2p-78245_Bugfix-to-UsageReportRestPermissionEvaluatorPlugin
Bugfix to usage report rest permission evaluator plugin
This commit is contained in:
@@ -59,6 +59,8 @@ public class UsageReportRestPermissionEvaluatorPlugin extends RestObjectPermissi
|
||||
@Override
|
||||
public boolean hasDSpacePermission(Authentication authentication, Serializable targetId, String targetType,
|
||||
DSpaceRestPermission restPermission) {
|
||||
if (StringUtils.equalsIgnoreCase(UsageReportRest.NAME, targetType)
|
||||
|| StringUtils.equalsIgnoreCase(UsageReportRest.NAME + "search", targetType)) {
|
||||
Request request = requestService.getCurrentRequest();
|
||||
Context context = ContextUtil.obtainContext(request.getServletRequest());
|
||||
UUID uuidObject = null;
|
||||
@@ -88,4 +90,6 @@ public class UsageReportRestPermissionEvaluatorPlugin extends RestObjectPermissi
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user