Commit 219c97fd authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Fix: Disable quota change for rdss3 (coscine/issues#1434)

parent ae43f99f
......@@ -27,4 +27,4 @@ and then trust the generated certificate ```dotnet dev-certs https --trust```
## Testing the new server
The server ist now available under: https://localhost:6000/ (port may be different!)
\ No newline at end of file
The server ist now available under: https://localhost:6000/ (port may be different!)
\ No newline at end of file
......@@ -359,6 +359,11 @@ namespace Coscine.Api.Project.Controllers
return NotFound($"Could not find resourceType with id: {resourceTypeId}");
}
if (resourceType.DisplayName.Equals("rdss3"))
{
return BadRequest($"Cannot adjust quota for rdss3.");
}
if (updateProjectQuotaObject.Allocated < 0)
{
return BadRequest($"Allocated {updateProjectQuotaObject.Allocated}. Cannot be less than 0.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment