Skip to content
Snippets Groups Projects

Topic/313 external api

Merged L. Ellenbeck requested to merge Topic/313-externalAPI into Product/269-contentMD
13 files
+ 367
18
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -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