diff --git a/datasette/templates/debug_check.html b/datasette/templates/debug_check.html
index 250408dd..47fce5cb 100644
--- a/datasette/templates/debug_check.html
+++ b/datasette/templates/debug_check.html
@@ -110,8 +110,8 @@
The permission action to check
diff --git a/datasette/templates/debug_rules.html b/datasette/templates/debug_rules.html
index c29f37de..3873bebe 100644
--- a/datasette/templates/debug_rules.html
+++ b/datasette/templates/debug_rules.html
@@ -26,8 +26,8 @@
The permission action to check
diff --git a/datasette/utils/actions_sql.py b/datasette/utils/actions_sql.py
index 79642720..dfd0867f 100644
--- a/datasette/utils/actions_sql.py
+++ b/datasette/utils/actions_sql.py
@@ -486,7 +486,7 @@ async def check_permission_for_resource(
rules_union, all_params = await build_permission_rules_sql(datasette, actor, action)
# If no rules (empty SQL), default deny
- if not rules_union or rules_union.endswith("WHERE 0"):
+ if not rules_union:
return False
# Add parameters for the resource we're checking
diff --git a/tests/test_special.py b/tests/test_search_tables.py
similarity index 100%
rename from tests/test_special.py
rename to tests/test_search_tables.py
diff --git a/tests/vec.db b/tests/vec.db
deleted file mode 100644
index 195ef213..00000000
Binary files a/tests/vec.db and /dev/null differ