Design and CSS styles
Version 5.x > Design and CSS styles > Comparing current users' rights to current document View modes: 
User avatar
Member
Member
lars.kvanum-viasat - 4/9/2010 6:00:00 AM
   
Comparing current users' rights to current document
Is there a direct way to do this? I'm not concerned, currently, with checking access to other documents, but I would like to check if the currently logged in user has access to 'this'.

Cheers!

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/16/2010 2:56:27 AM
   
RE:Comparing current users' rights to current document
Hi Lars,

You can use sample code from 'Checking if user is granted with given permission for a document' sub-section of Checking user permissions section of Dev.Guide.

Best Regards,

Martin Dobsicek