Good day! There is a gap in knowledge, I don’t know how to fill it in :( In general, there is an asp.net mvc project, there is an authorization filter on each controller method
[Authorize(Users = "user@mail.com")]
And there is a function that forms a string of allowed users in the form "user1@mail.com, user2@mail.com, user3@mail.com". Looks like this
private string getAllowedUsers(string method) { }
How do I put this function in the filter so that I end up with something like
[Authorize(Users = getAllowedUsers(method))]
In this form, it naturally does not work, it requires an object. How to?