Changeset 5024 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 2003-07-25T04:57:48+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r5019 r5024 178 178 ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, args["c"], logout); 179 179 180 if(cinfo->auth _collection == "document" && cinfo->allow_acls)180 if(cinfo->authenticate == "document") 181 181 { 182 182 // both are either commented out or uncomment and are empty 183 if (cinfo-> allowallexcept.empty() && cinfo->denyallexcept.empty())183 if (cinfo->public_documents.empty() && cinfo->private_documents.empty()) 184 184 { 185 185 //deny everything … … 188 188 } 189 189 190 // both allowallexcept and denyallexceptare turned on !191 else if (!cinfo-> allowallexcept.empty() && !cinfo->denyallexcept.empty())190 // both public_documents and private_documents are turned on ! 191 else if (!cinfo->public_documents.empty() && !cinfo->private_documents.empty()) 192 192 { 193 193 //deny everything … … 196 196 } 197 197 198 // only allowallexceptis set, so ask to authenticate for that article/doc199 else if (cinfo-> allowallexcept.find(docTop) != cinfo->allowallexcept.end() )198 // only public_documents is set, so ask to authenticate for that article/doc 199 else if (cinfo->public_documents.find(docTop) != cinfo->public_documents.end() ) 200 200 { 201 201 … … 204 204 } 205 205 206 // only denyallexceptis set, so ask to authenticate for that article/doc207 else if (cinfo-> denyallexcept.find(docTop) == cinfo->denyallexcept.end() )206 // only private_documents is set, so ask to authenticate for that article/doc 207 else if (cinfo->private_documents.find(docTop) == cinfo->private_documents.end() ) 208 208 { 209 209 args["uan"] = "1";
Note:
See TracChangeset
for help on using the changeset viewer.