[c-c db-check] disable write security as well so we can delete stuff when needed (e.g. orphan TrInfo)
--- a/server/checkintegrity.py Fri Jul 22 08:34:03 2011 +0200
+++ b/server/checkintegrity.py Fri Jul 22 08:34:38 2011 +0200
@@ -344,7 +344,7 @@
# yo, launch checks
if checks:
eids_cache = {}
- with security_enabled(session, read=False): # ensure no read security
+ with security_enabled(session, read=False, write=False): # ensure no read security
for check in checks:
check_func = globals()['check_%s' % check]
check_func(repo.schema, session, eids_cache, fix=fix)