aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserController.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-29 21:07:46 +0800
committer杨宇千 <crupest@outlook.com>2019-07-29 21:07:46 +0800
commit39e59e7320c6f53d1d2d2fdc4780877155fb6361 (patch)
tree1831dc93bcea72b38a914166b4df50226877e9d3 /Timeline/Controllers/UserController.cs
parente21ef1ac89c799ded14fce8f4f319b0e5ac7ab81 (diff)
downloadtimeline-39e59e7320c6f53d1d2d2fdc4780877155fb6361.tar.gz
timeline-39e59e7320c6f53d1d2d2fdc4780877155fb6361.tar.bz2
timeline-39e59e7320c6f53d1d2d2fdc4780877155fb6361.zip
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)