Skip to content
Snippets Groups Projects
Commit 02f147c3 authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Removed tests

parent 5fac0a57
No related tags found
1 merge request!3Product/1119 quota admin page
......@@ -26,7 +26,7 @@
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
......
......@@ -91,9 +91,6 @@ namespace Coscine.Api.Admin.Controllers
public ActionResult<ProjectObject> GetProject(string projectString)
{
var user = _authenticator.GetUserId();
// remove it when you finished testing and add make a commit!
user = "20E60AE8-111D-404A-9FFB-BD52D748F712";
if (!HasRole(user, _adminRole))
{
return Unauthorized($@"User has not the role: ""{_adminRole}"".");
......@@ -138,10 +135,6 @@ namespace Coscine.Api.Admin.Controllers
public IActionResult UpdateQuota([FromBody]UpdateQuotaParameterObject updateQuotaParameter)
{
var user = _authenticator.GetUserId();
// Use this for testing or add your user to Virtuoso
// remove it when you finished testing and add make a commit!
user = "20E60AE8-111D-404A-9FFB-BD52D748F712";
if (!HasRole(user, _adminRole))
{
return Unauthorized($@"User has not the role: ""{_adminRole}"".");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment