diff options
author | crupest <crupest@outlook.com> | 2019-04-12 23:34:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-12 23:34:40 +0800 |
commit | 1d184c3f41da806803c1ee792395eabcd155077d (patch) | |
tree | 0fa205ca1c58766101ae7f6c78be5ff2d77a0f28 /Timeline/Controllers/UserTestController.cs | |
parent | 19cae15eba2bcede41b818e1b8ab7fd5ac92eb05 (diff) | |
download | timeline-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.cs | 4 |
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(); |