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:
commit
3ec9e318b1
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user