Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Coscine
backend
apis
Project
Commits
219c97fd
Commit
219c97fd
authored
Apr 01, 2021
by
Marcel Nellesen
Browse files
Fix: Disable quota change for rdss3 (coscine/issues#1434)
parent
ae43f99f
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
219c97fd
...
...
@@ -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
src/Project/Controllers/ProjectController.cs
View file @
219c97fd
...
...
@@ -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."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment