diff options
author | crupest <crupest@outlook.com> | 2019-04-13 13:06:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-13 13:06:05 +0800 |
commit | 962ad53360fb559eaed1ee5a45ef361e6f580bd7 (patch) | |
tree | 8ecd711d2b1c97754b321ef0e0bc7de45d303cbd /Timeline/Controllers/UserTestController.cs | |
parent | 72890735ced2edc8ccecfed811393e951de5c091 (diff) | |
parent | 1d184c3f41da806803c1ee792395eabcd155077d (diff) | |
download | timeline-962ad53360fb559eaed1ee5a45ef361e6f580bd7.tar.gz timeline-962ad53360fb559eaed1ee5a45ef361e6f580bd7.tar.bz2 timeline-962ad53360fb559eaed1ee5a45ef361e6f580bd7.zip |
Merge branch '6-user' into separate
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 1c230667..f1edb0d5 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(); |