mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +00:00
[DS-92] Bitstream access rights inheritenc, editing in_archive items - ID: 1993036
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3659 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -2018,21 +2018,7 @@ public class Item extends DSpaceObject
|
||||
for (int i = 0; i < bunds.length; i++)
|
||||
{
|
||||
Bundle mybundle = bunds[i];
|
||||
|
||||
Bitstream[] bs = mybundle.getBitstreams();
|
||||
|
||||
for (int j = 0; j < bs.length; j++)
|
||||
{
|
||||
Bitstream mybitstream = bs[j];
|
||||
|
||||
// change bitstream policies
|
||||
AuthorizeManager.removeAllPolicies(ourContext, bs[j]);
|
||||
AuthorizeManager.addPolicies(ourContext, newpolicies, bs[j]);
|
||||
}
|
||||
|
||||
// change bundle policies
|
||||
AuthorizeManager.removeAllPolicies(ourContext, mybundle);
|
||||
AuthorizeManager.addPolicies(ourContext, newpolicies, mybundle);
|
||||
mybundle.replaceAllBitstreamPolicies(newpolicies);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user