aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserController.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-29 21:31:12 +0800
committerGitHub <noreply@github.com>2019-07-29 21:31:12 +0800
commit2f15ca5641b126968c3aa5bb93e7a1741f205705 (patch)
tree976ade1cd4ea973722c6455f47cebf81ffc6a563 /Timeline/Controllers/UserController.cs
parent0605fd447957698b1cc363cac7a18c2b366f0111 (diff)
parent7ab47e0e2b938f17404bba6f9a4a7b95e21f9a4e (diff)
downloadtimeline-2f15ca5641b126968c3aa5bb93e7a1741f205705.tar.gz
timeline-2f15ca5641b126968c3aa5bb93e7a1741f205705.tar.bz2
timeline-2f15ca5641b126968c3aa5bb93e7a1741f205705.zip
Merge pull request #29 from crupest/rename-admin
Rename isAdmin to administrator.
Diffstat (limited to 'Timeline/Controllers/UserController.cs')
-rw-r--r--Timeline/Controllers/UserController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Controllers/UserController.cs b/Timeline/Controllers/UserController.cs
index 413999ce..84267520 100644
--- a/Timeline/Controllers/UserController.cs
+++ b/Timeline/Controllers/UserController.cs
@@ -59,7 +59,7 @@ namespace Timeline.Controllers
return BadRequest();
}
- var result = await _userService.PutUser(username, request.Password, request.IsAdmin);
+ var result = await _userService.PutUser(username, request.Password, request.Administrator);
switch (result)
{
case PutResult.Created:
@@ -78,7 +78,7 @@ namespace Timeline.Controllers
{
try
{
- await _userService.PatchUser(username, request.Password, request.IsAdmin);
+ await _userService.PatchUser(username, request.Password, request.Administrator);
return Ok();
}
catch (UserNotExistException e)