Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Project
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
Project
Merge requests
!35
Topic/313 external api
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Topic/313 external api
Topic/313-externalAPI
into
Product/269-contentMD
Overview
0
Commits
13
Pipelines
1
Changes
13
Merged
L. Ellenbeck
requested to merge
Topic/313-externalAPI
into
Product/269-contentMD
5 years ago
Overview
0
Commits
13
Pipelines
1
Changes
13
Expand
coscine/issues#314
0
0
Merge request reports
Compare
Product/269-contentMD
Product/269-contentMD (base)
and
latest version
latest version
5436bd6c
13 commits,
5 years ago
13 files
+
367
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
Search (e.g. *.vue) (Ctrl+P)
src/Project/Controllers/DataSourceController.cs
+
1
−
2
Options
@@ -297,13 +297,12 @@ namespace Coscine.Api.Project.Controllers
return
BadRequest
(
$"
{
resourceId
}
is not a guid."
);
}
#if! DEBUG
var
user
=
_authenticator
.
GetUserFromToken
();
if
(!
_resourceModel
.
OwnsResource
(
user
,
resource
))
{
return
Forbid
(
$"The user does not own the resource
{
resourceId
}
"
);
}
#endif
try
{
resource
=
_resourceModel
.
GetById
(
resouceGuid
);
Loading