diff --git a/src/ssb.db.c b/src/ssb.db.c index 82847c01..d8d5dc6b 100644 --- a/src/ssb.db.c +++ b/src/ssb.db.c @@ -535,11 +535,16 @@ static int _tf_ssb_sqlite_authorizer(void* user_data, int action_code, const cha case SQLITE_FUNCTION: return SQLITE_OK; case SQLITE_READ: - return - (strcmp(arg0, "messages") == 0 || - strcmp(arg0, "blob_wants") == 0) + return ( + strcmp(arg0, "blob_wants") == 0 || + strcmp(arg0, "json_each") == 0 || + strcmp(arg0, "messages") == 0 || + strcmp(arg0, "sqlite_master") == 0 || + false) ? SQLITE_OK : SQLITE_DENY; break; + case SQLITE_UPDATE: + return SQLITE_OK; } return SQLITE_DENY; }