Technical support This forum is closed.
Version 1.x > Technical support > How to filter documents in CMSViewer View modes: 
User avatar
Member
Member
wtijsma - 4/26/2005 1:57:56 PM
   
How to filter documents in CMSViewer
Hi Petr,

I noticed the CMSViewer doesn't currently do anything with the per-document security permissions given in the CMSDesk to a document, even if the permission inheritance is decoupled from it's parent.

Is it possible to prevent these documents from being shown to anonymous users or users without the right permissions?

Thanks, Wiebe

User avatar
Guest
admin - 4/27/2005 3:23:18 PM
   
Re: How to filter documents in CMSViewer
Hi Wiebe,

I'm sorry for the delay in answering your question. Have you set the CheckPermissionsForUserID property value in your code? You need to set it to the UserID of the current user so that it checks the permissions correctly.

If you have some content that is available also for non-authorized users, you can create a user "anonymous user", set permissions for this account and then set its UserID value to the CheckPermissionsForUserID property in case the current user is not authenticated.

Thank you.

Best Regards,

User avatar
Member
Member
wtijsma - 4/27/2005 4:09:39 PM
   
Re: How to filter documents in CMSViewer
Hi Petr,

Great, works like a charm... I missed that property!

Already created an anonymous user, and "Everyone" role for the CommunityServer/Membership Management support...

Thanks!

Wiebe