Revision 4450
Added by ben leinfelder over 15 years ago
ReplicationHandler.java | ||
---|---|---|
371 | 371 |
if (accessControlList != null) { |
372 | 372 |
for (int i = 0; i < accessControlList.size(); i++) { |
373 | 373 |
AccessControlForSingleFile acfsf = (AccessControlForSingleFile) accessControlList.get(i); |
374 |
acfsf.insertPermissions(); |
|
374 |
if (!acfsf.accessControlExists()) { |
|
375 |
acfsf.insertPermissions(); |
|
376 |
} |
|
375 | 377 |
} |
376 | 378 |
} |
377 | 379 |
|
... | ... | |
496 | 498 |
if (accessControlList != null) { |
497 | 499 |
for (int i = 0; i < accessControlList.size(); i++) { |
498 | 500 |
AccessControlForSingleFile acfsf = (AccessControlForSingleFile) accessControlList.get(i); |
499 |
acfsf.insertPermissions(); |
|
501 |
if (!acfsf.accessControlExists()) { |
|
502 |
acfsf.insertPermissions(); |
|
503 |
} |
|
500 | 504 |
} |
501 | 505 |
} |
502 | 506 |
|
Also available in: Unified diff
check for existing access control rows before inserting (we do not need duplicate rows specifying the same access control)