mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DURACOM-357] improved admin check
This commit is contained in:
@@ -76,7 +76,7 @@ public class ItemConverter
|
||||
try {
|
||||
if (obj.isWithdrawn() && (Objects.isNull(context) ||
|
||||
Objects.isNull(context.getCurrentUser()) ||
|
||||
!(authorizeService.isAdmin(context) || authorizeService.isAdmin(context, obj)))) {
|
||||
!authorizeService.isAdmin(context, obj))) {
|
||||
return new MetadataValueList(List.of());
|
||||
}
|
||||
if (context != null && (authorizeService.isAdmin(context) || itemService.canEdit(context, obj))) {
|
||||
|
Reference in New Issue
Block a user