mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00

* Revert "Add git blame entry (#2226)" This reverts commit239286737d
. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a
.
24 lines
644 B
C#
24 lines
644 B
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Context
|
|
{
|
|
public class CurrentContentOrganization
|
|
{
|
|
public CurrentContentOrganization() { }
|
|
|
|
public CurrentContentOrganization(OrganizationUser orgUser)
|
|
{
|
|
Id = orgUser.OrganizationId;
|
|
Type = orgUser.Type;
|
|
Permissions = CoreHelpers.LoadClassFromJsonData<Permissions>(orgUser.Permissions);
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
public OrganizationUserType Type { get; set; }
|
|
public Permissions Permissions { get; set; }
|
|
}
|
|
}
|