diff options
author | crupest <crupest@outlook.com> | 2020-11-15 20:31:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-15 20:31:22 +0800 |
commit | 5b7b0120406ef4c609c07ab57074a76a753cd1fd (patch) | |
tree | dd34d028426627375a3183c30d1494fcec55969b /BackEnd/Timeline/Models/Http | |
parent | fa7b123be84afe020fc582535cc270e8cf24e85b (diff) | |
download | timeline-5b7b0120406ef4c609c07ab57074a76a753cd1fd.tar.gz timeline-5b7b0120406ef4c609c07ab57074a76a753cd1fd.tar.bz2 timeline-5b7b0120406ef4c609c07ab57074a76a753cd1fd.zip |
feat: Now changing user permission returns 400.
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r-- | BackEnd/Timeline/Models/Http/ErrorResponse.cs | 10 |
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
|