1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 16:23:31 +00:00

[SM-702] Extract access policy checks from create/update project commands (#2842)

* Move to access query for project commands

* Swap to hasAccess method per action

* Swap to authorization handler pattern

* Move ProjectOperationRequirement to Core

* Add default throw + tests

* Swap to reflection for testing switch
This commit is contained in:
Thomas Avery
2023-05-03 09:40:24 -05:00
committed by GitHub
parent 7be19b53f4
commit 5474d3da18
28 changed files with 490 additions and 166 deletions

View File

@@ -12,11 +12,10 @@ public class ProjectUpdateRequestModel
public Project ToProject(Guid id)
{
return new Project()
return new Project
{
Id = id,
Name = Name,
};
}
}