mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
* Update optionality to use org.FlexibleCollections Also break old feature flag key to ensure it's never enabled * Add logic to set defaults for collection management setting * Update optionality logic to use org property * Add comments * Add helper method for getting individual orgAbility * Fix validate user update permissions interface * Fix tests * dotnet format * Fix more tests * Simplify self-hosted update logic * Fix mapping * Use new getOrganizationAbility method * Refactor invite and save orgUser methods Pass in whole organization object instead of using OrganizationAbility * fix CipherService tests * dotnet format * Remove manager check to simplify this set of changes * Misc cleanup before review * Fix undefined variable * Refactor bulk-access endpoint to avoid early repo call * Restore manager check * Add tests for UpdateOrganizationLicenseCommand * Add nullable regions * Delete unused dependency * dotnet format * Fix test
19 lines
706 B
C#
19 lines
706 B
C#
using Bit.Core.AdminConsole.Entities;
|
|
using Bit.Core.AdminConsole.Entities.Provider;
|
|
using Bit.Core.AdminConsole.Models.Data.Provider;
|
|
using Bit.Core.Models.Data.Organizations;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public interface IApplicationCacheService
|
|
{
|
|
Task<IDictionary<Guid, OrganizationAbility>> GetOrganizationAbilitiesAsync();
|
|
#nullable enable
|
|
Task<OrganizationAbility?> GetOrganizationAbilityAsync(Guid orgId);
|
|
#nullable disable
|
|
Task<IDictionary<Guid, ProviderAbility>> GetProviderAbilitiesAsync();
|
|
Task UpsertOrganizationAbilityAsync(Organization organization);
|
|
Task UpsertProviderAbilityAsync(Provider provider);
|
|
Task DeleteOrganizationAbilityAsync(Guid organizationId);
|
|
}
|