My site allows people to edit posts. I want people to only edit their posts. I need an authorization attribute, for example:
[CanEditPost(PostId = Id)] ActionResult Edit(int Id) { }
But it looks like the attribute parameters should be static, which makes this impossible. Is there any way around this?
asp.net-mvc asp.net-mvc-3 asp.net-mvc-routing forms-authentication
Xodarap
source share