Revision 5424
Added by berkley almost 14 years ago
CrudServiceTest.java | ||
---|---|---|
710 | 710 |
{ |
711 | 711 |
CrudService cs = CrudService.getInstance(); |
712 | 712 |
IdentifierManager im = IdentifierManager.getInstance(); |
713 |
cs.setAccess(token, id, "public", "read", "allow", "allowFirst"); |
|
714 |
if(systemMetadataToo) |
|
715 |
{ |
|
716 |
String smidS = im.getSystemMetadataId(id.getValue()); |
|
717 |
Identifier smid = new Identifier(); |
|
718 |
smid.setValue(smidS); |
|
719 |
cs.setAccess(token, smid, "public", "read", "allow", "allowFirst"); |
|
720 |
} |
|
713 |
cs.setAccess(token, id, "public", "read", "allow", "allowFirst", systemMetadataToo); |
|
721 | 714 |
} |
722 | 715 |
|
723 | 716 |
/** |
Also available in: Unified diff
fixed bug in access control where the sessionid was not correctly passed along so changes of privileges were not being made