Skip to content

Commit 1e94f84

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
)

0 commit comments

Comments
 (0)