1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 12:43:14 +00:00

Create LegacyCollectionsAuthorizationHandler and start to re-implement old logic

This commit is contained in:
Thomas Rittson
2023-10-03 14:02:49 +10:00
parent 90db41a371
commit fbb19cdadd
4 changed files with 188 additions and 2 deletions

View File

@@ -345,6 +345,7 @@ public class CurrentContext : ICurrentContext
&& (o.Permissions?.DeleteAssignedCollections ?? false)) ?? false);
}
// TODO: move into the auth handler now so that we can have separate implementations depending on feature flag
public async Task<bool> ViewAssignedCollections(Guid orgId)
{
/*