mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
21 lines
719 B
C#
21 lines
719 B
C#
using Microsoft.AspNetCore.Authorization.Infrastructure;
|
|
|
|
namespace Bit.Api.Tools.Authorization;
|
|
|
|
public class VaultExportOperationRequirement : OperationAuthorizationRequirement;
|
|
|
|
public static class VaultExportOperations
|
|
{
|
|
/// <summary>
|
|
/// Exporting the entire organization vault.
|
|
/// </summary>
|
|
public static readonly VaultExportOperationRequirement ExportWholeVault =
|
|
new() { Name = nameof(ExportWholeVault) };
|
|
|
|
/// <summary>
|
|
/// Exporting only the organization items that the user has Can Manage permissions for
|
|
/// </summary>
|
|
public static readonly VaultExportOperationRequirement ExportManagedCollections =
|
|
new() { Name = nameof(ExportManagedCollections) };
|
|
}
|