-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incoming command validity checks in Set Credential. (#25264)
* When Set Credential happens with OperationType set to Modify and UserIndex set to null, that means we are modifying the credential for the programming user. In this case, UserStatus must be null and UserType must be ProgrammingUser, but we were not checking that. * When Set Credential happens with OperationType set to Modify and UserIndex not null, UserStatus and UserType must both be null. We were incorrectly allowing UserType to be ProgrammingUser in this case. * When Set Credential happens with OperationType set to Add and UserIndex not null, UserStatus and UserType must both be null. We were not checking for this at all. Fixes #25259
- Loading branch information
1 parent
d28ace7
commit 3113640
Showing
4 changed files
with
1,118 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.