Hi Ben Alexandra,
We plan to implement security permissions on category level but still cannot commit to any time frame for it. Using libraries, it is not possible to set permissions for a document so far.
However, you could achieve something similar to this using a regular upload. For example, you have a directory named pdf_files
, and want to restrict the access to it. Just add this code in your web.config
| <location path="pdf_files" >
| <deny users="?"/>
You also have to map the pdf extension to IIS as ISAPI filter. Your pdf files will be available after authentication, but it is not possible to have ROLES in this case - any authorized user will have access to this directory.
If you would like to achieve similar functionality with Roles enabled, you should create a custom HttpModule
, and hook on the PostAuthenticateRequest
event. Then, check if the request is for the desired directory and check the role membership of the user.
I hope you find this answer helpful.
the Telerik team