1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-09 11:54:41 -05:00

[SM-918] Enforce project maximums on import (#3253)

* Refactor MaxProjectsQuery for multiple adds

* Update unit tests

* Add max project enforcement to imports
This commit is contained in:
Thomas Avery
2023-09-07 17:51:35 -05:00
committed by GitHub
parent 2aaef3cf64
commit 4b482f0a34
6 changed files with 53 additions and 20 deletions

View File

@ -2,5 +2,5 @@
public interface IMaxProjectsQuery
{
Task<(short? max, bool? atMax)> GetByOrgIdAsync(Guid organizationId);
Task<(short? max, bool? overMax)> GetByOrgIdAsync(Guid organizationId, int projectsToAdd);
}