phase1: fix auth_service tenant context for audit_log, add sessions+audit_log to crm_auth grants
- auth_service.py: set tenant context before audit log write in login - migration 0085: add sessions and audit_log to AUTH_TABLES for crm_auth - Login now works on production with RLS enabled
This commit is contained in:
@@ -77,6 +77,8 @@ AUTH_TABLES = {
|
||||
"user_tenants": ["SELECT"],
|
||||
"tenants": ["SELECT"],
|
||||
"password_reset_tokens": ["SELECT", "INSERT", "UPDATE", "DELETE"],
|
||||
"sessions": ["SELECT", "INSERT", "UPDATE", "DELETE"],
|
||||
"audit_log": ["SELECT", "INSERT"],
|
||||
}
|
||||
|
||||
WORKER_GLOBAL_TABLES = {
|
||||
|
||||
Reference in New Issue
Block a user