mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 18:44:22 +00:00
[DS-3125] Submitters cannot delete bistreams of workspaceitems
This commit is contained in:
@@ -785,6 +785,8 @@ public class ItemTest extends AbstractDSpaceObjectTest
|
||||
Constants.ADD); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.REMOVE); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.DELETE); result = null;
|
||||
}};
|
||||
|
||||
String name = "bundle";
|
||||
@@ -926,6 +928,8 @@ public class ItemTest extends AbstractDSpaceObjectTest
|
||||
Constants.ADD); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.REMOVE); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.DELETE); result = null;
|
||||
}};
|
||||
|
||||
String name = "LICENSE";
|
||||
@@ -1215,6 +1219,8 @@ public class ItemTest extends AbstractDSpaceObjectTest
|
||||
// Allow Item REMOVE perms
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.REMOVE, true); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.DELETE, true); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.WRITE); result = null;
|
||||
}};
|
||||
@@ -1257,6 +1263,8 @@ public class ItemTest extends AbstractDSpaceObjectTest
|
||||
Constants.WRITE); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.REMOVE); result = null;
|
||||
authorizeService.authorizeAction((Context) any, (Item) any,
|
||||
Constants.DELETE); result = null;
|
||||
|
||||
}};
|
||||
|
||||
|
Reference in New Issue
Block a user