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

2 posts, 0 answers
  1. Ben
    Ben avatar
    1 posts
    Member since:
    Mar 2013

    Posted 08 Jan 2014 Link to this post

    The menu SecurityTrimming feature isn't hiding actions that are marked as async.

    For example I have the following Action:

    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.
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 10 Jan 2014 Link to this post

    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.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top