Technical support This forum is closed.
Version 1.x > Technical support > Simple Site Security Settings View modes: 
User avatar
Member
Member
jwheeler - 4/18/2006 11:56:09 PM
   
Simple Site Security Settings
I am using the free trial and the default setup.

I moved the Products page to the Partners menu and now want to secure the Partners area. I am able to use the web.config to force a login, however, any login ( Reps for ex. ) is granting access to the Products even though I have set document permisions to only allow the default CMS.Administrators and Dealers ( I created ).

What am I missing?

Do I have to edite the Partners.aspx(.cs) and Products.aspx(.cs) files to do more validation? If so, how is this done?

Thanks for your reply in advance!

User avatar
Guest
admin - 4/19/2006 11:43:06 AM
   
Re: Simple Site Security Settings
Hello,

the Kentico CMS Controls do not check the permissions by default (for performance reasons). If you want to check the permissions, you need to set the CheckPermissionsForUserID of the appropriate controls using a simple code like this:

CMSDataList1.CheckPermissionsForUserID = Functions.GetUserID();

You can find an example in the CorporateSite sample web site, in the Partners section.

Please let me know if you need any help with that.

Best Regards,