This is a migrated thread and some comments may be shown as answers.

Menu SecurityTrimming doesn't hide actions that are marked as async

1 Answer 10 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 08 Jan 2014, 05:54 PM
The menu SecurityTrimming feature isn't hiding actions that are marked as async.

For example I have the following Action:

[Authorize]
public async Task<ActionResult> Profile()
{
     return View();
}

If I include this Action in the Menu, it displays even if the user is not logged in.
Ben

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 Jan 2014, 02:13 PM
Hello Ben,

Currently, security trimming functionality supports only Action methods which are synchronous. The good news is that support for Action methods returning Task<ActionResult> will be supported in the next official release of Kendo UI due in the mid of next week. I will suggest you give it a try once it is released and let us know if the problem still persists.

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Menu
Asked by
Ben
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or