Skip to content

Commit

Permalink
Fixed bug in rename permissions
Browse files Browse the repository at this point in the history
Refs #60, refs #59
  • Loading branch information
simonw committed Feb 18, 2024
1 parent 03f7f53 commit 01d61ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette_edit_schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ async def rename_table(request, datasette, database, table, formdata):
return redirect

# User must have drop-table permission on old table and create-table on new table
if not await can_rename_table(datasette, request.actor, database, table):
if not await can_rename_table(datasette, request.actor, database.name, table):
datasette.add_message(
request,
"Permission denied to rename table '{}'".format(table),
Expand Down

0 comments on commit 01d61ea

Please sign in to comment.