mirror of
https://github.com/bitwarden/server.git
synced 2025-12-10 00:42:07 -06:00
Linting
This commit is contained in:
parent
039c0ae286
commit
6b2934528b
@ -140,7 +140,7 @@ public class UserDecryptionOptionsBuilder : IUserDecryptionOptionsBuilder
|
|||||||
// user and organization user will have been codified.
|
// user and organization user will have been codified.
|
||||||
var organizationUser = await _organizationUserRepository.GetByOrganizationAsync(_ssoConfig.OrganizationId, _user.Id);
|
var organizationUser = await _organizationUserRepository.GetByOrganizationAsync(_ssoConfig.OrganizationId, _user.Id);
|
||||||
var hasManageResetPasswordPermission = await EvaluateHasManageResetPasswordPermission();
|
var hasManageResetPasswordPermission = await EvaluateHasManageResetPasswordPermission();
|
||||||
|
|
||||||
// They are only able to be approved by an admin if they have enrolled is reset password
|
// They are only able to be approved by an admin if they have enrolled is reset password
|
||||||
var hasAdminApproval = organizationUser != null && !string.IsNullOrEmpty(organizationUser.ResetPasswordKey);
|
var hasAdminApproval = organizationUser != null && !string.IsNullOrEmpty(organizationUser.ResetPasswordKey);
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,6 @@ using Bit.Core.Entities;
|
|||||||
using Bit.Core.Enums;
|
using Bit.Core.Enums;
|
||||||
using Bit.Core.Models.Data;
|
using Bit.Core.Models.Data;
|
||||||
using Bit.Core.Repositories;
|
using Bit.Core.Repositories;
|
||||||
using Bit.Core.Services;
|
|
||||||
using Bit.Identity.IdentityServer;
|
using Bit.Identity.IdentityServer;
|
||||||
using Bit.Identity.Test.AutoFixture;
|
using Bit.Identity.Test.AutoFixture;
|
||||||
using Bit.Identity.Utilities;
|
using Bit.Identity.Utilities;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user