mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 14:13:18 +08:00
* Expose access policy discriminators * Add people policy model and auth handler * Add unit tests for authz handler * Add people policies support in repo * Add new endpoints and request/response models * Update tests
23 lines
562 B
C#
23 lines
562 B
C#
namespace Bit.Core.SecretsManager.Models.Data;
|
|
|
|
public class PeopleGrantees
|
|
{
|
|
public IEnumerable<UserGrantee> UserGrantees { get; set; }
|
|
public IEnumerable<GroupGrantee> GroupGrantees { get; set; }
|
|
}
|
|
|
|
public class UserGrantee
|
|
{
|
|
public Guid OrganizationUserId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Email { get; set; }
|
|
public bool CurrentUser { get; set; }
|
|
}
|
|
|
|
public class GroupGrantee
|
|
{
|
|
public Guid GroupId { get; set; }
|
|
public string Name { get; set; }
|
|
public bool CurrentUserInGroup { get; set; }
|
|
}
|