Skip to content

Commit

Permalink
Add check on ControllerDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
heldersepu committed Aug 25, 2019
1 parent 6854b73 commit 2e11913
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public void Apply(Operation o, SchemaRegistry s, ApiDescription a)

if (!addSecurity)
{
//a.ActionDescriptor.ControllerDescriptor.GetCustomAttributes<_type>(true)
addSecurity = a.ActionDescriptor.ControllerDescriptor.GetCustomAttributes<object>(true)
.Where(x => x.ToString() == _type.ToString())
.Any();
}

if (addSecurity)
Expand Down

0 comments on commit 2e11913

Please sign in to comment.