Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 0b272ef

Browse files
committed
common: Allow SQLite queries which use temp tables to run
1 parent 39a8b70 commit 0b272ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/sqlite.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ func AuthorizerSelect(d interface{}, action sqlite.Action, tableName, funcName,
225225
// Only known functions are allowed
226226
return sqlite.AuthOk
227227
}
228+
case sqlite.Update:
229+
if tableName == "sqlite_master" {
230+
return sqlite.AuthOk
231+
}
228232
}
229233

230234
// All other action types, functions, etc are denied

0 commit comments

Comments
 (0)