Skip to content

Commit 6ef9812

Browse files
authored
Merge pull request #42 from kishore-mannava-db/main
Upload to Volume button is broken in steamlit and dash ui
2 parents 249be0a + 7bd7a91 commit 6ef9812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dash/pages/volumes_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def check_upload_permissions(volume_name: str):
2525
volume = w.volumes.read(name=volume_name)
2626
current_user = w.current_user.me()
2727
grants = w.grants.get_effective(
28-
securable_type=SecurableType.VOLUME,
28+
securable_type="volume",
2929
full_name=volume.full_name,
3030
principal=current_user.user_name,
3131
)

streamlit/views/volumes_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def check_upload_permissions(volume_name: str):
2222
volume = w.volumes.read(name=volume_name)
2323
current_user = w.current_user.me()
2424
grants = w.grants.get_effective(
25-
securable_type=SecurableType.VOLUME,
25+
securable_type="volume",
2626
full_name=volume.full_name,
2727
principal=current_user.user_name,
2828
)

0 commit comments

Comments
 (0)