simonw / datasette-edit-schema

Datasette plugin for modifying table schemas
Apache License 2.0
16 stars 0 forks source link

User with limited permissions should not be able to rename a table #60

Closed simonw closed 7 months ago

simonw commented 7 months ago

I just succeeded in renaming a table when I had alter-table permission - but I did not have drop-table permission on the old name or create-table permission on the new name.

Found while working on:

simonw commented 7 months ago

I want to display the "Rename table" form only if the user has permission to use it - which means they need to have drop-table permission on the current table and they need create-table permission on the database itself.

simonw commented 7 months ago

This was released in 0.8a0.