Skip to content

Commit a255f5c

Browse files
authored
Automatically add CAN_MANAGE permission on databricks_instance_pool for calling user (#2298)
1 parent 15facb2 commit a255f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

permissions/resource_permissions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func urlPathForObjectID(objectID string) string {
124124
// permissions when POSTing permissions changes through the REST API, to avoid accidentally
125125
// revoking the calling user's ability to manage the current object.
126126
func (a PermissionsAPI) shouldExplicitlyGrantCallingUserManagePermissions(objectID string) bool {
127-
for _, prefix := range [...]string{"/registered-models/", "/clusters/", "/queries/", "/sql/warehouses"} {
127+
for _, prefix := range [...]string{"/registered-models/", "/clusters/", "/instance-pools/", "/queries/", "/sql/warehouses"} {
128128
if strings.HasPrefix(objectID, prefix) {
129129
return true
130130
}

0 commit comments

Comments
 (0)