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:
24
src/Core/Context/CurrentContextOrganization.cs
Normal file
24
src/Core/Context/CurrentContextOrganization.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user