Revision 1330
Added by Jing Tao about 22 years ago
src/edu/ucsb/nceas/metacat/AccessControlList.java | ||
---|---|---|
337 | 337 |
insertPermissions(docid,leavingTagName); |
338 | 338 |
} |
339 | 339 |
|
340 |
// if acl is not in object list |
|
340 | 341 |
//should insert permission for aclid itself into database |
341 |
DocumentIdentifier aclIdItself = new DocumentIdentifier(aclid); |
|
342 |
String aclIdString = aclIdItself.getIdentifier(); |
|
343 |
insertPermissions(aclIdString,leavingTagName); |
|
342 |
if (!aclObjects.contains(aclid)) |
|
343 |
{ |
|
344 |
DocumentIdentifier aclIdItself = new DocumentIdentifier(aclid); |
|
345 |
String aclIdString = aclIdItself.getIdentifier(); |
|
346 |
insertPermissions(aclIdString,leavingTagName); |
|
347 |
} |
|
344 | 348 |
|
345 | 349 |
|
346 | 350 |
} catch (SQLException sqle) { |
Also available in: Unified diff
In creating xml_access table, add a condition for assigning a access document to itself: if there is not triple. If there is a triple that access file points itself, we don't need inserting again. Otherwise we will get duplicate records.