]> git.sesse.net Git - plocate/blobdiff - access_rx_cache.cpp
Fix an issue where the database could be built with the wrong check_visibility flag.
[plocate] / access_rx_cache.cpp
index a16a1fc58f1cadc0a9a15bad663e107a8e125d5c..b6db4eaf101c9faa288e3d0ac005b946c1a68e15 100644 (file)
@@ -11,7 +11,7 @@ using namespace std;
 
 void AccessRXCache::check_access(const char *filename, bool allow_async, function<void(bool)> cb)
 {
-       if (!require_visibility) {
+       if (!check_visibility) {
                cb(true);
                return;
        }