File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,18 @@ public class SecurityRequirementsOperationFilter : IOperationFilter
1010 {
1111 public void Apply ( Operation operation , OperationFilterContext context )
1212 {
13- var controllerPermissions = context . ApiDescription . ControllerAttributes ( )
13+ var controllerAbpAuthorizeAttrs = context . ApiDescription . ControllerAttributes ( )
1414 . OfType < AbpAuthorizeAttribute > ( ) ;
1515
16- var actionPermissions = context . ApiDescription . ActionAttributes ( )
16+ var actionAbpAuthorizeAtrrs = context . ApiDescription . ActionAttributes ( )
1717 . OfType < AbpAuthorizeAttribute > ( ) ;
1818
19- if ( controllerPermissions . Any ( ) || actionPermissions . Any ( ) )
19+ if ( controllerAbpAuthorizeAttrs . Any ( ) || actionAbpAuthorizeAtrrs . Any ( ) )
2020 {
2121 operation . Responses . Add ( "401" , new Response { Description = "Unauthorized" } ) ;
2222 operation . Responses . Add ( "403" , new Response { Description = "Forbidden" } ) ;
2323
24- var permissions = controllerPermissions . Union ( actionPermissions )
24+ var permissions = controllerAbpAuthorizeAttrs . Union ( actionAbpAuthorizeAtrrs )
2525 . SelectMany ( p => p . Permissions )
2626 . Distinct ( ) ;
2727
You can’t perform that action at this time.
0 commit comments