aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-05 01:06:48 +0200
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-05 01:06:48 +0200
commit60a0c91d48917babd52272f2ddf2a6bb3599e06a (patch)
treecb7ff00fb604aabac5193cc64e445757838b580f /backend
parentfabb83b189759fc487af23f2e8051c699e1bb3c3 (diff)
Dodata permisija gostu da moze izbrisati i updajtovato svoj experiment.
Diffstat (limited to 'backend')
-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();