1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 21:18:13 -05:00

Merge branch 'experiment/authorize-attribute' of https://github.com/bitwarden/server into experiment/authorize-attribute

This commit is contained in:
Thomas Rittson 2025-03-31 18:03:27 +10:00
commit 3ec9e318b1
No known key found for this signature in database
GPG Key ID: CDDDA03861C35E27

View File

@ -16,6 +16,6 @@ public class AuthorizeAttribute<T>
public IEnumerable<IAuthorizationRequirement> GetRequirements() public IEnumerable<IAuthorizationRequirement> GetRequirements()
{ {
var requirement = new T(); var requirement = new T();
yield return requirement; return [requirement];
} }
} }