aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-15 20:31:22 +0800
committercrupest <crupest@outlook.com>2020-11-15 20:31:22 +0800
commit667143d870679deb4be55122237e66d2d480946f (patch)
treeda5c5c4f4b0edcc827182a448bed0e7cc5ec1729 /BackEnd/Timeline/Models
parent63ec1050dd24e4123f73e9ed757376dc8128803d (diff)
downloadtimeline-667143d870679deb4be55122237e66d2d480946f.tar.gz
timeline-667143d870679deb4be55122237e66d2d480946f.tar.bz2
timeline-667143d870679deb4be55122237e66d2d480946f.zip
feat: Now changing user permission returns 400.
Diffstat (limited to 'BackEnd/Timeline/Models')
-rw-r--r--BackEnd/Timeline/Models/Http/ErrorResponse.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/ErrorResponse.cs b/BackEnd/Timeline/Models/Http/ErrorResponse.cs
index ac86481f..616a0037 100644
--- a/BackEnd/Timeline/Models/Http/ErrorResponse.cs
+++ b/BackEnd/Timeline/Models/Http/ErrorResponse.cs
@@ -156,6 +156,16 @@ namespace Timeline.Models.Http
return new CommonResponse(ErrorCodes.UserController.ChangePassword_BadOldPassword, string.Format(message, formatArgs));
}
+ public static CommonResponse ChangePermission_RootUser(params object?[] formatArgs)
+ {
+ return new CommonResponse(ErrorCodes.UserController.ChangePermission_RootUser, string.Format(UserController_ChangePermission_RootUser, formatArgs));
+ }
+
+ public static CommonResponse CustomMessage_ChangePermission_RootUser(string message, params object?[] formatArgs)
+ {
+ return new CommonResponse(ErrorCodes.UserController.ChangePermission_RootUser, string.Format(message, formatArgs));
+ }
+
}
public static class UserAvatar