Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Show folders only of write premission based on user View modes: 
User avatar
Member
Member
rosewebs - 9/24/2009 5:24:04 AM
   
Show folders only of write premission based on user
Many thanks for suggesting in the past , which we have used and have achived an good result, the good thing the more i learn about kentico, the more i like it. fabolus CMS

while working with documents, we have created following folder structure for every client that sign up our site, they can just either read the document which admin has added and has provided read only premssion to that folder, and then they have 2 more folders where in they can store their own unlimited folders and keep adding pdfs in which ever folder they have the write permission


COMPANY1
Accounts Dcoument- Read Only- only admin can add files
Staff Document - Read & write permission to company1
staff1
performance.pdf
staff2
appointmentletter.pdf
Clients Document - Read & Write Permission
Client 1
Client 2



COMPANY2
Accounts Dcoument- Read Only
Staff Document - Read & write permission to company2
staff1
performance.pdf
staff2
appointmentletter.pdf
Clients Document - Read & Write Permission
Client 1
Client 2


Although we are able to restrict display of files based on their logins, we have also provided write permission to Company1 for adding files to the folder of their choice where they have write permission, but when we have add fileuploader we do not have option to allow him to see and choose only folders that he has permission for. can you please advice whow do we bring in dropdown of write permission folder or allow him to chosoe the folder from tree

Thanks- Gulab Nihalani


User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 9/28/2009 10:25:35 AM
   
RE:Show folders only of write premission based on user
Hi Gulab,
I'm not sure if I understand you correctly but if you want to find out what are the permissions of current user for documents under some hierarchy, you can use
CMS.TreeEngine.TreeProvider.SelectNodes(String, String, String, Boolean) method to obtain dataset with information about document nodes and then for every node you should call CMS.CMSHelper.CurrentUserInfo.IsAuthorizedPerDocument(TreeNode, NodePermissionsEnum, String) to find out if user has appropriate permission.
Best Regards,
Zbysek Nemec