Revision 4769
Added by daigle almost 16 years ago
src/edu/ucsb/nceas/metacat/Eml210SAXHandler.java | ||
---|---|---|
1564 | 1564 |
try { |
1565 | 1565 |
PermissionController controller = new PermissionController( |
1566 | 1566 |
distributionSection.getDataFileName(), false); |
1567 |
|
|
1568 |
if (!controller.hasPermission(user, groups, "WRITE")) {
|
|
1567 |
if (AccessionNumber.accNumberUsed(docid) |
|
1568 |
&& !controller.hasPermission(user, groups, "WRITE")) {
|
|
1569 | 1569 |
throw new SAXException(UPDATEACCESSERROR); |
1570 | 1570 |
} |
1571 | 1571 |
} catch (SQLException sqle) { |
Also available in: Unified diff
Don't worry about checking for user permissions when inserting a new document