aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserTestController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-12 23:34:40 +0800
committercrupest <crupest@outlook.com>2019-04-12 23:34:40 +0800
commit1d184c3f41da806803c1ee792395eabcd155077d (patch)
tree0fa205ca1c58766101ae7f6c78be5ff2d77a0f28 /Timeline/Controllers/UserTestController.cs
parent19cae15eba2bcede41b818e1b8ab7fd5ac92eb05 (diff)
downloadtimeline-1d184c3f41da806803c1ee792395eabcd155077d.tar.gz
timeline-1d184c3f41da806803c1ee792395eabcd155077d.tar.bz2
timeline-1d184c3f41da806803c1ee792395eabcd155077d.zip
Add database connection.
Diffstat (limited to 'Timeline/Controllers/UserTestController.cs')
-rw-r--r--Timeline/Controllers/UserTestController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Controllers/UserTestController.cs b/Timeline/Controllers/UserTestController.cs
index cf5cf074..de8058f2 100644
--- a/Timeline/Controllers/UserTestController.cs
+++ b/Timeline/Controllers/UserTestController.cs
@@ -14,14 +14,14 @@ namespace Timeline.Controllers
}
[HttpGet("[action]")]
- [Authorize(Roles = "User,Admin")]
+ [Authorize(Roles = "user,admin")]
public ActionResult BothUserAndAdmin()
{
return Ok();
}
[HttpGet("[action]")]
- [Authorize(Roles = "Admin")]
+ [Authorize(Roles = "admin")]
public ActionResult OnlyAdmin()
{
return Ok();