Revision 6750
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/Eml200SAXHandler.java | ||
---|---|---|
2718 | 2718 |
{ |
2719 | 2719 |
return guid; |
2720 | 2720 |
} |
2721 |
PermissionController controller = new |
|
2722 |
PermissionController(accessionNumber); |
|
2723 |
if (controller.hasPermission( |
|
2724 |
user, groups, AccessControlInterface.ALLSTRING)) |
|
2725 |
{ |
|
2721 |
// check the previous revision if we have it |
|
2722 |
int previousRevision = rev; |
|
2723 |
Vector<Integer> revisions = DBUtil.getRevListFromRevisionTable(docid); |
|
2724 |
if (revisions != null && revisions.size() > 0) { |
|
2725 |
previousRevision = revisions.get(revisions.size() - 1); |
|
2726 |
} |
|
2727 |
String previousDocid = |
|
2728 |
docid + PropertyService.getProperty("document.accNumSeparator") + previousRevision; |
|
2729 |
PermissionController controller = new PermissionController(previousDocid); |
|
2730 |
if (controller.hasPermission(user, groups, AccessControlInterface.ALLSTRING)) { |
|
2726 | 2731 |
return guid; |
2727 | 2732 |
} |
2728 | 2733 |
else |
Also available in: Unified diff
check previous revision when attempting to update access control with EML 2.0.x docs
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560