1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 18:43:36 +00:00

Fix typo: CurrentContent -> CurrentContext (#3231)

This commit is contained in:
Thomas Rittson
2023-08-28 10:20:01 +10:00
committed by GitHub
parent 4748b5b3fc
commit 4d59dd4a6b
7 changed files with 39 additions and 39 deletions

View File

@@ -0,0 +1,24 @@
using Bit.Core.Enums;
using Bit.Core.Models.Data;
using Bit.Core.Models.Data.Organizations.OrganizationUsers;
using Bit.Core.Utilities;
namespace Bit.Core.Context;
public class CurrentContextOrganization
{
public CurrentContextOrganization() { }
public CurrentContextOrganization(OrganizationUserOrganizationDetails orgUser)
{
Id = orgUser.OrganizationId;
Type = orgUser.Type;
Permissions = CoreHelpers.LoadClassFromJsonData<Permissions>(orgUser.Permissions);
AccessSecretsManager = orgUser.AccessSecretsManager && orgUser.UseSecretsManager;
}
public Guid Id { get; set; }
public OrganizationUserType Type { get; set; }
public Permissions Permissions { get; set; }
public bool AccessSecretsManager { get; set; }
}