diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-05-05 01:06:48 +0200 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-05-05 01:06:48 +0200 |
commit | 60a0c91d48917babd52272f2ddf2a6bb3599e06a (patch) | |
tree | cb7ff00fb604aabac5193cc64e445757838b580f | |
parent | fabb83b189759fc487af23f2e8051c699e1bb3c3 (diff) |
Dodata permisija gostu da moze izbrisati i updajtovato svoj experiment.
-rw-r--r-- | backend/api/api/Controllers/ExperimentController.cs | 4 |
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(); |