Project

General

Profile

« Previous | Next » 

Revision 4769

Added by daigle over 15 years ago

Don't worry about checking for user permissions when inserting a new document

View differences:

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