Forum


HomeHomePremiumPremiumDevelopmentDevelopmentIFolderInfo - IsProtectedIFolderInfo - IsProtected
Previous
 
Next
New Post
4/7/2015 6:42 AM
 

I recently created a secure folder using the DNN File Manager GUI.  When investigating the properties of the folder in the code behind I noticed the "IsProtected" property.  When I view this property in the debugger, it is set to False.  I view the IsStorageSecure property and it is set to True.  I altered the permissions on the folder so everyone except Administrators are explicitly denied but this did not alter the IsProtected value.  I use the following code to retrieve the IFolderInfo object:

string FileAssetFolderName = "MyFolderName";

IFolderInfo fi = folderManager.GetFolder(PortalId, FileAssetFolderName);

What does the variable IsProtected tell me about the folder and how might I go about altering it if desired?

Thanks

 
New Post
4/15/2015 4:03 AM
 

Andy,

I am not sure that the IsProtected property does.  I know that from the database, a folder is considered secure when the FolderMappingID in the Folders table refers to a FolderMappings record that has the SecureFolderProvider for that portal ID.  The permissions on a secure folder are stored in the FolderPermissions table.  So I wouldn't worry too much about the IsProtected property as long as the folder is secure and the permissions are working as expected when trying to access the files.

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentIFolderInfo - IsProtectedIFolderInfo - IsProtected



Try FREE
30 days money back guaranteed