diff --git a/app/controllers/v3/routes_controller.rb b/app/controllers/v3/routes_controller.rb index 55c6509ea54..7caecc054ee 100644 --- a/app/controllers/v3/routes_controller.rb +++ b/app/controllers/v3/routes_controller.rb @@ -175,7 +175,7 @@ def transfer_owner message = RouteTransferOwnerMessage.new(hashed_params[:body]) unprocessable!(message.errors.full_messages) unless message.valid? - unauthorized! unless permission_queryer.can_manage_apps_in_active_space?(route.space.guid) + unauthorized! unless permission_queryer.can_write_to_active_space?(route.space.guid) target_space = Space.first(guid: message.guid) target_space_error = if target_space.nil? || !can_read_space?(target_space) diff --git a/docs/v3/source/includes/resources/routes/_transfer_route_ownership.md.erb b/docs/v3/source/includes/resources/routes/_transfer_route_ownership.md.erb index 40f5d88419b..fda14ce3d3c 100644 --- a/docs/v3/source/includes/resources/routes/_transfer_route_ownership.md.erb +++ b/docs/v3/source/includes/resources/routes/_transfer_route_ownership.md.erb @@ -29,4 +29,3 @@ HTTP/1.1 204 No Content --- | Admin | Space Developer | -Space Supporter | diff --git a/spec/request/routes_spec.rb b/spec/request/routes_spec.rb index 3de72b85db1..b3317e84f01 100644 --- a/spec/request/routes_spec.rb +++ b/spec/request/routes_spec.rb @@ -3180,7 +3180,6 @@ h['no_role'] = { code: 404 } h['org_billing_manager'] = { code: 404 } h['space_developer'] = { code: 200 } - h['space_supporter'] = { code: 200 } h end