Commit 20b8f1cf authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Small fix

parent 067fae85
......@@ -143,8 +143,8 @@ namespace Coscine.Api.Blob.Controllers
public async Task<IActionResult> GetFile(string resourceId, string path)
{
var user = _authenticator.GetUser();
var checkPath = CheckPath(path);
path = $"/{path}";
var checkPath = CheckPath(path);
if (checkPath != null)
{
return checkPath;
......@@ -190,8 +190,8 @@ namespace Coscine.Api.Blob.Controllers
public async Task<IActionResult> UploadFile(string resourceId, string path)
{
var user = _authenticator.GetUser();
var checkPath = CheckPath(path);
path = $"/{path}";
var checkPath = CheckPath(path);
if (checkPath != null)
{
return checkPath;
......@@ -251,8 +251,8 @@ namespace Coscine.Api.Blob.Controllers
public async Task<IActionResult> DeleteFile(string resourceId, string path)
{
var user = _authenticator.GetUser();
var checkPath = CheckPath(path);
path = $"/{path}";
var checkPath = CheckPath(path);
if (checkPath != null)
{
return checkPath;
......
Supports Markdown
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