1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00

parse user active path as string value (#2193)

This commit is contained in:
Kyle Spearrin 2022-08-15 16:58:16 -04:00 committed by GitHub
parent 62f29efb00
commit 8b323e67c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,8 @@ namespace Bit.Scim.Controllers.v2
// Active from path
if (operation.Path?.ToLowerInvariant() == "active")
{
var handled = await HandleActiveOperationAsync(orgUser, operation.Value.GetBoolean());
var active = operation.Value.ToString()?.ToLowerInvariant();
var handled = await HandleActiveOperationAsync(orgUser, active == "true");
if (!operationHandled)
{
operationHandled = handled;