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 | 401a5b74696c471e5168e421e3de0db1e5f946a8 (patch) | |
tree | 46e4110f6044d606dc7e30d03c8527db6954b212 /Timeline/Controllers/UserTestController.cs | |
parent | 8c5e7069d2651fb6fae641dfe482d7a0910b3fd1 (diff) | |
download | timeline-401a5b74696c471e5168e421e3de0db1e5f946a8.tar.gz timeline-401a5b74696c471e5168e421e3de0db1e5f946a8.tar.bz2 timeline-401a5b74696c471e5168e421e3de0db1e5f946a8.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(); |