Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to provide permissions to a pdf file which is there in Standard folder in DNN file managerHow to provide permissions to a pdf file which is there in Standard folder in DNN file manager
Previous
 
Next
New Post
2/2/2015 7:24 AM
 

Hi,

I have uploaded few pdf files in the Standard folder in DNN file manager. Those file are opening with direct urls irrespective of permissions which I given to the folder.

 

I noticed that the permissions are applicable for the Secure folders only (i.e http://mitchelsellers.com/blogs/2007/12/06/dotnetnuke-folder-types-explained.aspx ). But i wanted to give permissions to the standard folder itself. How can i achieve this  ?

 

 

 
New Post
2/2/2015 11:34 AM
 
you cannot - standard folders mean that the files are unprotected for reads as the urls are to the resource (in theory you can use web.config to fix this - http://support.microsoft.com/kb/316871 ). Secure folders do not store files with their names, but rather either append .resources (for secure filesystem), or store in the database (for secure database) so direct urls dont work, forcing the user request to be validated against the security model

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/3/2015 8:04 AM
 

Thanks Cathel.

I tried this by adding following code in my Config file.

  <location path="Portals/0/Articles/DPL/docs">

    <system.web>

      <authorization>

        <allow roles ="Members" />

        <deny users="*" />

      </authorization>

    </system.web>

  </location>

 

But still, I am unable to restrict the pdf file access which were there in the location " ~/Portals/0/Articles/DPL/docs ".

Please suggest the necessary code changes.

 
New Post
2/3/2015 8:47 AM
 
direct links are handled by IIS - and IIS has no access to DNN roles, only to windows roles (i.e. it would work in an intranet environment with active directory authentication used for DNN.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/3/2015 2:27 PM
 
Sebastian is correct, the web.config option is for windows roles

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to provide permissions to a pdf file which is there in Standard folder in DNN file managerHow to provide permissions to a pdf file which is there in Standard folder in DNN file manager


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out