Hide Templates from unauthorized users

4 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 04 Nov 2014 Link to this post

    Hi,

    I am developing an application where based on the user role, he/she can view a set of Templates. So in case, of normal user, he/she should view X templates, while Admin can view X and Y Templates.

    Is using local templates, anyone regardless of his/her role, could "View Source" and see the Templates used by Admin.

    Is there a work around? 

    Thanks
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 06 Nov 2014 Link to this post

    Hi Bilal,

    you may consider fetching the templates from the server with some sort of an authorization mechanism. However, this would defeat the purpose (and the responsiveness) of the SPA implementation. If you think that your app code may contain sensitive data of some sort, my advice would be to pick a server-side architecture instead. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 07 Nov 2014 in reply to Petyo Link to this post

    How do you usually develop SPA when there is such a requirement (allow users to access Template X and other users Template Y)?

    In my case, I can load all templates from beginning, but I can limit which data to load based on the role, sounds good?

    Best regards
    Bilal Haidar
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 11 Nov 2014 Link to this post

    Hello Bilal,

    The SPA architecture concept is not unique to the Kendo UI product offering, so I am not sure if our support service can provide an expert opinion on the subject. I think that you may get more informed opinions on the topic in the general programming community sites like stack overflow or Quora, for example. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready