Hi,
Would it be possible to set the folder(s) a user can see and access based on user? I would like it to work kind of like FTP where each user has his/her "root" folder so that user A cannot see or access User B's files/folders.
Can I do this with CKFinder? If so, is it a simple configuration parameter or is it somewhat complicated? I'd love to see some code samples that show how this is accomplished.
Thanks
Sam
Would it be possible to set the folder(s) a user can see and access based on user? I would like it to work kind of like FTP where each user has his/her "root" folder so that user A cannot see or access User B's files/folders.
Can I do this with CKFinder? If so, is it a simple configuration parameter or is it somewhat complicated? I'd love to see some code samples that show how this is accomplished.
Thanks
Sam
Re: Is it possible to set folder by user?
if (Session["ShowImageFolders"] != null)
{
BaseUrl = service.GetDirectoryPath(@"\CatalogImages\");
StoreClass store = new StoreClass();
if (store != null && !string.IsNullOrEmpty(store.Name))
{
BaseUrl = BaseUrl + store.Name + @"\StoreImages" ;
}
}
else
{
BaseUrl = service.GetDirectoryPath(@"\Catalog\MasterPages\");
StoreClass store = new StoreClass();
if (store != null && !string.IsNullOrEmpty(store.SelectedTheme))
{
BaseUrl = BaseUrl + store.SelectedTheme + @"\";
}
}
to give access specific on role u need to do the same
if (Session["ShowImageFolders"] != null)
{
acl.FolderView = true;
acl.FolderCreate = true;
acl.FolderRename = true;
acl.FolderDelete = true;
acl.FileView = true;
acl.FileUpload = true;
acl.FileRename = true;
acl.FileDelete = true;
}
else
{
acl.FolderView = true;
acl.FolderCreate = false;
acl.FolderRename = false;
acl.FolderDelete = false;
acl.FileView = true;
acl.FileUpload = false;
acl.FileRename = false;
acl.FileDelete = false;
}