Completed
Last Updated: 13 Nov 2023 13:17 by ADMIN
Release R1.2024-Increment.1(15.Nov.2023)
Colin M
Created on: 29 Sep 2022 06:26
Category: Menu
Type: Bug Report
0
Security trimming returns incorrect items when there are controllers and actions with the same name, but located in different areas

Bug report

Security trimming returns incorrect items when there are two controllers with the same name but located in different areas.

Reproduction of the problem

With the following Menu configuration

@(Html.Kendo().Menu()
    .Name("menu")
    .SecurityTrimming(st=>{
        st.Enabled(true);
    })
    .Items(i=>{
        i.Add().Action("MyAction","Home",new {area = "Area1"}).Text("Accessible Item");
        i.Add().Action("MyAction","Home",new {area = "Area2"}).Text("Authorized Item");
    })
)

and the following area/controller/action structure the MyAction Action in Area2 will not be trimmed.

Areas
|--Area1
|   |--Controllers
|       |--HomeController
|           |--MyAction
|--Area2
    |--Controllers
        |--HomeController
            |--[Authorize]MyAction

Expected/desired behavior

MyAction Action in Area2 should be trimmed.

Environment

  • Kendo UI version: 2022.3.913
  • Browser: [all]
0 comments