Skip to content

Commit 7bd7a91

Browse files
Fixed upload volume button volumes_upload.py
SecurableType.VOLUME is not available in SDK, when deployed in databricks apps.
1 parent 1e94f84 commit 7bd7a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)