Skip to content

False positive: "Missing function level access control" where public endpoint name contains "Edit" #21042

@joepvtl

Description

@joepvtl

Description of the false positive

We have a .NET 8 Api.

We have a controller method that has the characters 'Edit' in it, but the whole word is not Edit. This causes the method to be marked with the rule cs/web/missing-function-level-access-control. The method even has the 'AllowAnonymous' attribute on it.

Code samples or links to source code

[AllowAnonymous]
public async Task TestEditionAsync(){

}

Is there a way to get this alert resolved?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions