mirror of
https://github.com/simonw/datasette.git
synced 2026-09-07 00:54:16 +02:00
parent
8bd7e165f4
commit
51dab16149
6 changed files with 91 additions and 15 deletions
|
|
@ -82,9 +82,7 @@ def decision_for_write_sql_operation(
|
|||
"Writes to shadow tables are not allowed in user-supplied SQL"
|
||||
)
|
||||
if operation.operation == "function":
|
||||
# SQL functions currently have no Datasette permission mapping. They are
|
||||
# rejected by the user-supplied write SQL allow-list as unsupported.
|
||||
return UnsupportedWriteSqlOperation(unsupported_message)
|
||||
return IgnoreWriteSqlOperation("SQL function")
|
||||
if (
|
||||
operation.operation == "read"
|
||||
and operation.target_type == "table"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue