Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Repeater with custom query - check permissions View modes: 
User avatar
Member
Member
Nicola - 7/21/2011 9:26:56 PM
   
Repeater with custom query - check permissions
Hi,

In Site Manager > Settings > Security I have set 'Check page permissions' to 'All pages'. I have created a 'Repeater with custom query' web part on a page. This web part doesn't check permissions and there is no property to do so on the web part as on the 'Repeater' web part. Is there an easy way to do this or query code I can add to the custom query?

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/22/2011 3:14:25 AM
   
RE:Repeater with custom query - check permissions
Hi,

Since the repeater is using a custom SQL query which can pull whatever data, it is up to you to create such a SQL query which will ensure the permissions for data you are pulling from the DB. In the query you will need to check current user and her ACL permissions for given objects/data.

Best regards,
Juraj Ondrus