Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
simonw opened this issue Feb 18, 2024 · 2 comments
Closed

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

simonw opened this issue Feb 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Feb 18, 2024

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 simonw added the bug Something isn't working label Feb 18, 2024
@simonw
Copy link
Owner Author

simonw commented Feb 18, 2024

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
Copy link
Owner Author

simonw commented Feb 20, 2024

This was released in 0.8a0.

simonw added a commit that referenced this issue Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant