aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/api/api/Controllers/ExperimentController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/api/api/Controllers/ExperimentController.cs b/backend/api/api/Controllers/ExperimentController.cs
index 6f1bbd42..08354615 100644
--- a/backend/api/api/Controllers/ExperimentController.cs
+++ b/backend/api/api/Controllers/ExperimentController.cs
@@ -92,7 +92,7 @@ namespace api.Controllers
// PUT api/<ExperimentController>/{name}
[HttpPut("{id}")]
- [Authorize(Roles = "User")]
+ [Authorize(Roles = "User,Guest")]
public ActionResult Put(string id, [FromBody] Experiment experiment)
{
string uploaderId = getUserId();
@@ -114,7 +114,7 @@ namespace api.Controllers
// DELETE api/<ExperimentController>/name
[HttpDelete("{id}")]
- [Authorize(Roles = "User")]
+ [Authorize(Roles = "User,Guest")]
public ActionResult Delete(string id)
{
string uploaderId = getUserId();