Revision 4733
Added by daigle almost 16 years ago
src/edu/ucsb/nceas/metacat/Eml210SAXHandler.java | ||
---|---|---|
2188 | 2188 |
|
2189 | 2189 |
// distributionOnlineFileName = docid; |
2190 | 2190 |
onlineDataFileIdInRelationVector.add(docid); |
2191 |
try { |
|
2192 |
|
|
2191 |
try { |
|
2193 | 2192 |
if (!AccessionNumber.accNumberUsed(docid)) { |
2194 | 2193 |
onlineDataFileIdInTopAccessVector.add(docid); |
2195 |
} |
|
2196 |
PermissionController controller = new PermissionController( |
|
2197 |
accessionNumber); |
|
2198 |
if (controller.hasPermission(user, groups, |
|
2199 |
AccessControlInterface.ALLSTRING)) { |
|
2200 |
onlineDataFileIdInTopAccessVector.add(docid); |
|
2201 | 2194 |
} else { |
2202 |
throw new SAXException(UPDATEACCESSERROR); |
|
2203 |
} |
|
2195 |
PermissionController controller = new PermissionController(accessionNumber); |
|
2196 |
if (controller.hasPermission(user, groups,AccessControlInterface.ALLSTRING)) { |
|
2197 |
onlineDataFileIdInTopAccessVector.add(docid); |
|
2198 |
} else { |
|
2199 |
throw new SAXException(UPDATEACCESSERROR); |
|
2200 |
} |
|
2201 |
} |
|
2204 | 2202 |
}// try |
2205 | 2203 |
catch (Exception e) { |
2206 | 2204 |
logMetacat.error("Eorr in " |
Also available in: Unified diff
Only check user permissions for online data if the data already exists.